Works ok. windows MSVC binary at http://xoomer.virgilio.it/hherold/ Heiko
-- -- PREVINET S.p.A. www.previnet.it -- Heiko Herold [EMAIL PROTECTED] -- +39-041-5907073 ph -- +39-041-5907472 fax > -----Original Message----- > From: Hrvoje Niksic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 9:41 PM > To: Herold Heiko > Cc: List Wget (E-mail); [EMAIL PROTECTED] > Subject: Re: POST trouble > > > Herold Heiko <[EMAIL PROTECTED]> writes: > > > Content-Length: Content-Length: 35 > [...] > > The line > > Content-Length: Content-Length: 35 > > certainly seems strange. > > Yup, that's where the bug is. This should fix it: > > 2003-12-16 Hrvoje Niksic <[EMAIL PROTECTED]> > > * http.c (gethttp): Fix generation of `Content-Length'. > > Index: src/http.c > =================================================================== > RCS file: /pack/anoncvs/wget/src/http.c,v > retrieving revision 1.137 > diff -u -r1.137 http.c > --- src/http.c 2003/12/12 22:55:19 1.137 > +++ src/http.c 2003/12/16 20:39:30 > @@ -1253,8 +1253,7 @@ > } > } > request_set_header (req, "Content-Length", > - aprintf ("Content-Length: %ld", > post_data_size), > - rel_value); > + aprintf ("%ld", post_data_size), rel_value); > } > > /* Add the user headers. */ >