curl-library
Re: another buf fixed!!!!
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 17 Feb 2002 12:17:41 +0100 (MET)
Date: Sun, 17 Feb 2002 12:17:41 +0100 (MET)
On Thu, 14 Feb 2002, Giaslas Georgios wrote:
> i have experienced the following problem when using libcurl to make some
> requests over a proxy. sometimes, while it sends correct the GET
> http://.... HTTP/1.1 request to the proxy, it sends the name of the host of
> the previous request in the Host: header field. I think I've found the
> reason. The Host: header is constructed at http.c:Curl_http:586 line and
> uses the 'host' variable which points to conn->name. But at
> url.c:CreateConnection:1985 line when the struct connectdata is reused the
> old_con->name isn't passed to the new, so conn->name contains the name of
> the previous host.
>
> I attach a fix for this.
Thanks a lot. I've applied it!
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-02-17