cURL / Mailing Lists / curl-library / Single Mail

curl-library

Is it a valid behavior?

From: amit paliwal <amit.ambitions_at_gmail.com>
Date: Fri, 21 Jan 2011 13:55:06 -0500

Hi All,

I tried following scenario:

Client ----HTTP GET------------> Server

Client <---------Normal data WITHOUT HTTP Header---------------------------
Server

Client <------------HTTP 200 OK Response------------Server

I have my header and write data callback's registered with the curl handle.
So, i have observer that in second step, it calls my write handler and
curl_easy_perform() is still in blocking state. So even when in step 3,
Server sends HTTP 200 OK Response (here Connection:Keep alive, token is
sent), even this HTTP header comes in write callback, rather than HTTP
header callback and the curl_easy_perform() is still in blocking condition.

Is it a valid behavior?

Should not curl_easy_perform() come out of blocking state?

Please provide your valuable inputs on this.

Regards,

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-21