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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to