Debian Bug report logs - #407526
wget: chunk support broken

version graph

Package: wget; Maintainer for wget is Noël Köthe <noel@debian.org>; Source for wget is src:wget.

Reported by: Jasen Betts <jasen@free.net.nz>

Date: Fri, 19 Jan 2007 08:33:01 UTC

Severity: normal

Found in version wget/1.9.1-12

Done: Noèl Köthe <noel@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Noèl Köthe <noel@debian.org>:
Bug#407526; Package wget. Full text and rfc822 format available.

Acknowledgement sent to Jasen Betts <jasen@free.net.nz>:
New Bug report received and forwarded. Copy sent to Noèl Köthe <noel@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jasen Betts <jasen@free.net.nz>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: wget: chunk support broken
Date: Fri, 19 Jan 2007 21:14:29 +1300
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



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#407526; Package wget. Full text and rfc822 format available.

Acknowledgement sent to Noèl Köthe <noel@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at 407526@bugs.debian.org (full text, mbox):

From: Noèl Köthe <noel@debian.org>
To: Jasen Betts <jasen@free.net.nz>, 407526@bugs.debian.org
Cc: control <control@bugs.debian.org>
Subject: Re: Bug#407526: wget: chunk support broken
Date: Fri, 28 Mar 2008 21:11:32 +0100
[Message part 1 (text/plain, inline)]
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 (application/pgp-signature, inline)]

Tags added: moreinfo Request was from Noèl Köthe <noel@debian.org> to control@bugs.debian.org. (Fri, 28 Mar 2008 20:52:20 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Noèl Köthe <noel@debian.org>:
Bug#407526; Package wget. Full text and rfc822 format available.

Acknowledgement sent to Micah Cowan <micah@cowan.name>:
Extra info received and forwarded to list. Copy sent to Noèl Köthe <noel@debian.org>. Full text and rfc822 format available.

Message #17 received at 407526@bugs.debian.org (full text, mbox):

From: Micah Cowan <micah@cowan.name>
To: 407526@bugs.debian.org
Cc: Jasen Betts <jasen@free.net.nz>
Subject: Re: Bug#407526: wget: chunk support broken
Date: Fri, 28 Mar 2008 14:10:20 -0700
-----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-----




Removed tag(s) moreinfo. Request was from Noèl Köthe <noel@debian.org> to control@bugs.debian.org. (Fri, 09 Apr 2010 21:48:05 GMT) Full text and rfc822 format available.

Reply sent to Noèl Köthe <noel@debian.org>:
You have taken responsibility. (Fri, 09 Apr 2010 21:51:04 GMT) Full text and rfc822 format available.

Notification sent to Jasen Betts <jasen@free.net.nz>:
Bug acknowledged by developer. (Fri, 09 Apr 2010 21:51:04 GMT) Full text and rfc822 format available.

Message #24 received at 407526-done@bugs.debian.org (full text, mbox):

From: Noèl Köthe <noel@debian.org>
To: 407526-done@bugs.debian.org
Cc: control <control@bugs.debian.org>
Subject: Re: Bug#407526: wget: chunk support broken
Date: Fri, 09 Apr 2010 23:43:04 +0200
[Message part 1 (text/plain, inline)]
tags 407526 - moreinfo
thanks

Hello,

Am Freitag, den 28.03.2008, 14:10 -0700 schrieb Micah Cowan:

> > 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).

as described this is not a bug because wget don't send HTTP/1.1
requests.

-- 
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 08 May 2010 07:32:50 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 18:27:01 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.