From owner-freebsd-ports@freebsd.org Tue Apr 25 02:22:17 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54778D4E7A2 for ; Tue, 25 Apr 2017 02:22:17 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from kazanfieldhockey.ru (kazanfieldhockey.ru [78.138.152.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "kazanfieldhockey.ru", Issuer "kazanfieldhockey.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C08071790 for ; Tue, 25 Apr 2017 02:22:16 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from asd2 (host-175-22.static.telecet.ru [87.117.175.22]) (authenticated bits=0) by kazanfieldhockey.ru (8.14.3/8.14.3) with ESMTP id v3P2M6o4041581 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 25 Apr 2017 05:22:09 +0300 (MSK) (envelope-from anatoly@kazanfieldhockey.ru) Date: Tue, 25 Apr 2017 05:22:06 +0300 From: Anatoly To: freebsd-ports@freebsd.org Subject: Re: Downloading with lynx or w3m, how to download as is, without gratuitous gzip Message-ID: <20170425052206.19993f2e@asd2> In-Reply-To: <44.A8.09002.AEE8EF85@dnvrco-omsmta01> References: <32.A2.09002.B158DF85@dnvrco-omsmta01> <20170424155658.5e5abbf4@asd2> <44.A8.09002.AEE8EF85@dnvrco-omsmta01> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 02:22:17 -0000 On Mon, 24 Apr 2017 23:48:32 +0000 "Thomas Mueller" wrote: > I have no recent experience with links. Should I build with > graphics, without graphics, or build links1? If you wish text console only, no graphics needed. Under x11 it's nice fast simple graphical browser when started as 'links -g' otherwise. If you wish graphics without x11, may experiment with direct fb and svgalib. Links1 is an old version (contemporary is 2.x). I think w3m doesn't gzip anything itself, but When talking to server it says that gzip supported. Then it receives compressed stream from server and fails (or just lazy) to decompress it. -w3m must not say to server "Accept-Encoding: gzip, deflate" if it can't gunzip -server must not send gzipped stream if above not said. And unfortunately, I think, some servers may not respect this. -w3m must gunzip it otherwise. I never used w3m, have not it istalled yet, but quick look at manual on the web gives a idea to try w3m -header "accept-encoding: identity" to explicitly say to server send everything in plain. Can you display content you trying to save on w3m screen online? If yes, may try to fight for gzipping off, but if no, you must investigate why gunzipping is not working within w3m (is it compiled against zlib or something at all?). Btw, what is the url you trying to save? > Lynx was nice before it got intimately mixed with gzip. But every browser nowadays can do "content gunzipping" due to existing web standard