curl-library
Re: HTTP 1.0 and multi handle question
Date: Mon, 30 Aug 2004 10:54:05 +0300
More:
Could it be because the default behavior from the http.c (line 1255 in
7.12.1 or line 1281 in 7.12.0) is
/* We default to persistant connections */
conn->bits.close = FALSE;
and then in transfer.c we set it to TRUE only and only if the response
was in HTTP 1.0.
In my case the response is 1.1 and this is the reason for my problem ?
Tnx again
Roma
On Mon, 2004-08-30 at 10:41, Roman Koifman wrote:
> Hi,
>
> I am using the 7.12.0 libcurl version and have some strange behavior
> when the multi handle is used to proceed some easy handle with few
> HTTP
> 1.0 transactions.
>
> I use one easy handle to send these transactions. Since it is HTTP 1.0
> (without permanent features) the connection MUST be closed by client
> after each of finished transactions. I suppose that Curl_done must be
> called on the handle and then on next transaction the connection is
> opened again.
>
> But sometimes I see (on the same connection) something like this:
>
> ----------------------------------------------------------------------
>
> ET http://www.cnn.com/cnn.rss HTTP/1.0
> Host: www.cnn.com
> Pragma: no-cache
> Accept: */*
>
>
> HTTP/1.1 200 OK
> Proxy-Connection: close
> Age: 3563
> Accept-Ranges: bytes
> Date: Wed, 04 Aug 2004 16:50:23 GMT
> Content-Length: 723
> Content-Type: text/plain
> Server: Netscape-Enterprise/6.1 AOL
>
> DATA ...
>
> GET http://www.cnn.com/cnn.rss HTTP/1.0
> Host: www.cnn.com
> Pragma: no-cache
> Accept: */*
>
>
> -------------------------------------------------------
>
> Note: Then the connection is closed by the server.
>
> What do I do wrong ?
>
> Tnx
> Roma
>
>
> *****************************
> Finjan Software
>
> This e-mail and any attached files are confidential and may be legally
> privileged. The unauthorized use, disclosure or copying of this email
> or
> any information contained within it is strictly prohibited. This also
> confirms that Finjan Software's Vital Security for E-Mail has scanned
> this
> message for the presence of known viruses and potentially malicious
> code.
>
> Finjan Software - Prevention is the Best Cure!
> *****************************
>
>
>
>
*****************************
Finjan Software
This e-mail and any attached files are confidential and may be legally
privileged. The unauthorized use, disclosure or copying of this email or
any information contained within it is strictly prohibited. This also
confirms that Finjan Software's Vital Security for E-Mail has scanned this
message for the presence of known viruses and potentially malicious
code.
Finjan Software - Prevention is the Best Cure!
*****************************
Received on 2004-08-30