Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 19:10:11 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        Dan Langille <dan@langille.org>
Cc:        hackers@freebsd.org
Subject:   Re: gzip and cvsweb.cg
Message-ID:  <86u26g9gn0.wl@archon.local.idaemons.org>
In-Reply-To: <200101310952.WAA70602@ducky.nz.freebsd.org>
References:  <Pine.BSF.4.32.0101301409530.6394-100000@xeon.unixathome.org> <86wvbd38mw.wl@archon.local.idaemons.org> <200101310952.WAA70602@ducky.nz.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 31 Jan 2001 22:52:02 +1300,
Dan Langille wrote:
> OK.  Explain this.  When we telnet to port 80 and fetch it, we don't get 
> gzip.  When we use lynx, it doesn't come back gzip'd (does lynx know 
> gzip?).
> 
> [dan@lists:~/temp] $ lynx -dump 
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/mnoGoSearch-
> current/Makefile?rev=H
> EAD > Makefile
> [dan@lists:~/temp] $ file Makefile
> Makefile: ASCII text
> 
> [dan@lists:~/temp] $ fetch -o Makefile 
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/mnoGoSearch-
> current/Makefil
> e?rev=HEAD
> Receiving Makefile: 2 Kbytes
> 2082 bytes transferred in 0.0 seconds  (1233.01 Kbytes/s)
> [dan@lists:~/temp] $ file Makefile
> Makefile: ASCII text
> 
> [dan@lists:~/temp] $ fetch -o Makefile 
> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/www/mnoGoSe
> arch-curr
> ent/Makefile?rev=HEAD
> Receiving Makefile: 1 Kbytes
> 1029 bytes transferred in 0.0 seconds  (716.23 Kbytes/s)
> 
> [dan@lists:~/temp] $ file Makefile
> Makefile: gzip compressed data, deflated, last modified: Wed Jan 31 
> 10:47:57 2001, max speed, os: Unix
> 
> go figure...

Hmm.  It doesn't happen on my box at all.

knu@daemon[1]% printenv HTTP_PROXY                                           ~/src/ruby/src/lib/irc
http://proxy:3128/
knu@daemon[1]% printenv FTP_PROXY                                            ~/src/ruby/src/lib/irc
http://proxy:3128/
knu@daemon[1]% fetch -o Makefile 'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/www/mnoGoSearch-current/Makefile?rev=HEAD'
fetch: Makefile: size of remote file is not known
Receiving Makefile: 2082 bytes
2082 bytes transferred in 0.0 seconds (70.47 kBps)
knu@daemon[1]% file Makefile                                                 ~/src/ruby/src/lib/irc
Makefile: ASCII text
knu@daemon[1]% unset HTTP_PROXY FTP_PROXY                                    ~/src/ruby/src/lib/irc
knu@daemon[1]% fetch -o Makefile 'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/www/mnoGoSearch-current/Makefile?rev=HEAD'
fetch: Makefile: size of remote file is not known
Receiving Makefile: 2082 bytes
2082 bytes transferred in 0.0 seconds (64.08 kBps)
knu@daemon[1]% file Makefile                                                 ~/src/ruby/src/lib/irc
Makefile: ASCII text


Read cvsweb.cgi and you'll know it only gzip's the stream when the
user agent claims either it's "Mozilla/*" or it accepts gzip
encoding.  Which applies to your situation?

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"We're only at home when we're on the run, on the wing, on the fly"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86u26g9gn0.wl>