[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wget
Subject:    RE: POST trouble
From:       Herold Heiko <Heiko.Herold () previnet ! it>
Date:       2003-12-17 14:18:14
[Download RAW message or body]

Works ok.
windows MSVC binary at http://xoomer.virgilio.it/hherold/
Heiko

-- 
-- PREVINET S.p.A. www.previnet.it
-- Heiko Herold Heiko.Herold@previnet.it
-- +39-041-5907073 ph
-- +39-041-5907472 fax

> -----Original Message-----
> From: Hrvoje Niksic [mailto:hniksic@xemacs.org]
> Sent: Tuesday, December 16, 2003 9:41 PM
> To: Herold Heiko
> Cc: List Wget (E-mail); wget-patches@sunsite.dk
> Subject: Re: POST trouble
> 
> 
> Herold Heiko <Heiko.Herold@previnet.it> 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  <hniksic@xemacs.org>
> 
> 	* 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. */
> 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic