cURL / Mailing Lists / curl-library / Single Mail

curl-library

another buf fixed!!!!

From: Giaslas Georgios <giaslas_at_ceid.upatras.gr>
Date: Thu, 14 Feb 2002 12:56:38 +0200 (EET)

hi,
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.

George Giaslas

Received on 2002-02-14