Hello.

I've tried to download some files from joecartoon.com an perhaps I've found a bug in wget.

I did the following:

[EMAIL PROTECTED]:~/test$ wget -S http://joecartoon.atomfilms.com/media/swf/0/public/1/joebutton.swf > deb
--22:57:11-- http://joecartoon.atomfilms.com/media/swf/0/public/1/joebutton.swf
=> `joebutton.swf.12'
Resolving joecartoon.atomfilms.com... 63.251.52.59
Connecting to joecartoon.atomfilms.com[63.251.52.59]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 200 OK
2 Date: Thu, 30 Dec 2004 22:01:53 GMT
3 Server: Apache
4 Content-Encoding: gzip
5 Last-Modified: Fri, 25 Jun 2004 19:56:11 GMT
6 Content-Length: 9972
7 Keep-Alive: timeout=15, max=100
8 Connection: Keep-Alive
9 Content-Type: application/x-shockwave-flash
100%[========================================================================================================>] 9,972 18.68K/s
22:57:12 (18.63 KB/s) - `joebutton.swf' saved [9972/9972]
[EMAIL PROTECTED]:~/test$


As you can see the "Content-Ecoding" is gzip and the size is 9972 bytes.
When I download the same file with Firefox the filesize is 10037 bytes (and the files are "completely" different).
So I used ettercap and did some network sniffing and found out that, at TCP level, the same data arrives (Firefox receives the file gzipped too).
The next thing I did was trying to change the Content-Encoding using the "--header" switch, but that didn't work. Perhaps the joecartoon.com server does not allow this.

When I now gzip the file downloaded by Firefox I get the same gzip file, BUT
at the end wget seems to append 0x0A (which makes the wget gzip file broken).

So here are my two questions/bugs:
1) Why doesn't wget decompress the file? This is probably not a bug in wget. The file might be compressed on the joecartoon.com server too, but Firefox looks at the file, recognize that it's an gzip, an decompress it automatically.
2) Why appends wget a 0xA at the end of the file?


Greetings,
Christoph Anton Mitterer.
PS: Is it possible that the same thing happend with other files I used to download using wget e.g. pictures, PDFs, etc.?
begin:vcard
fn:Mitterer, Christoph Anton
n:Mitterer;Christoph Anton
org:Munich University of Applied Sciences;Department of Mathematics and Computer Science
adr;quoted-printable;quoted-printable:;;Lothstra=C3=9Fe 34;M=C3=BCnchen;Freistaat Bayern;80335;Federal Republic of Germany
email;internet:[EMAIL PROTECTED]
tel;home:+49 89 24409390
tel;cell:+49 172 8617341
x-mozilla-html:TRUE
url:http://fhm.edu/
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to