Bug#407526: wget: chunk support broken
tags 407526 + moreinfo thanks Am Freitag, den 19.01.2007, 21:14 +1300 schrieb Jasen Betts: Hello Jasen, what I did was capture a HTTP response using netcat and then feed it to wget using netcat cat capture | nc -lp 8083 wget http://localhost:8083/foo netcat didn't successfuly see the end of the file. - I think it may be relying on chunk boundaries being aligned with packet boundaries. the response I was sending looked like this... (data part abbreviated) HTTP/1.1 200 OK Date: Thu, 18 Jan 2007 19:42:57 GMT Server: Apache Webserver X-Powered-By: PHP/4.4.4 Connection: close Transfer-Encoding: chunked Content-Type: image/png 1d 0x1d data bytes 4 abcd 4 abcd 1000 0x1000 data bytes 6 etc... 0 Can you reproduce this with newer wget versions (latest is 1.11.1 or with 1.10)? thx. -- Noèl Köthe noel debian.org Debian GNU/Linux, www.debian.org signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
Bug#407526: wget: chunk support broken
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Noèl Köthe wrote: what I did was capture a HTTP response using netcat and then feed it to wget using netcat cat capture | nc -lp 8083 wget http://localhost:8083/foo netcat didn't successfuly see the end of the file. - I think it may be relying on chunk boundaries being aligned with packet boundaries. ... Can you reproduce this with newer wget versions (latest is 1.11.1 or with 1.10)? Wget has zero support for chunked transfer encodings (and therefore, for HTTP/1.1). It will only ever send HTTP/1.0 requests, which means that a HTTP/1.1 response is illegal (as is the chunked encoding). Obviously, we'd like to see this changed; but it's not a bug; more of an obsolescence. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer, and GNU Wget Project Maintainer. http://micah.cowan.name/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH7V677M8hyUobTrERAl1UAJ9tccYzRKpsTPKB//1X7ILVAVXi7gCcDx7R miDRTrQCJYQeoO43L1P4cNU= =a181 -END PGP SIGNATURE-
Bug#407526: wget: chunk support broken
Package: wget Version: 1.9.1-12 Severity: normal what I did was capture a HTTP response using netcat and then feed it to wget using netcat cat capture | nc -lp 8083 wget http://localhost:8083/foo netcat didn't successfuly see the end of the file. - I think it may be relying on chunk boundaries being aligned with packet boundaries. the response I was sending looked like this... (data part abbreviated) HTTP/1.1 200 OK Date: Thu, 18 Jan 2007 19:42:57 GMT Server: Apache Webserver X-Powered-By: PHP/4.4.4 Connection: close Transfer-Encoding: chunked Content-Type: image/png 1d 0x1d data bytes 4 abcd 4 abcd 1000 0x1000 data bytes 6 etc... 0 -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.13.2jb2JB1 Locale: LANG=en_NZ, LC_CTYPE=en_NZ (charmap=ISO-8859-1) Versions of packages wget depends on: ii libc6 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an ii libssl0.9.7 0.9.7e-3sarge4 SSL shared libraries -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]