curl-library
Using multi interface with redirects and SSL negotiation
Date: Thu, 5 Feb 2009 12:04:49 -0800
Hi,
Looking for advice on using libcurl in my particular situation.
I want to have my callbacks receive the the header and body data when they come in from a curl easy connection. I want to use the multi interface so that I can have the download be non-blocking.
I think I essentially want to use multi-single.c, but with the callbacks. The part I'm not sure about is:
The WRITEFUNCTION and HEADERFUNCTION callbacks are called automatically by curl when curl_multi_perform() called and when data is available.
Instead, I want to be notified when something is readable, and call the callbacks myself. I know that the select() approach does that. How does that interact with FOLLOWLOCATION and SSL negotiation? Won't the select() return based on reading/writing done by curl itself? Any recommendations on how I can get notified of read-ability of the final headers and body, and not any intermediate headers caused by redirects?
Thanks,
-James
Received on 2009-02-05