cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: can Curl use socket() created by application?

From: amit paliwal <amit.ambitions_at_gmail.com>
Date: Fri, 19 Aug 2011 10:27:59 -0400

curl_opensocket_callback callback that is required to use says "The
callback's purpose argument identifies the exact purpose for this particular
socket, and currently only one value is supported: CURLSOCKTYPE_IPCXN for
the primary connection (meaning the control connection in the FTP case)"

Will it work for HTTP?

On Fri, Aug 19, 2011 at 10:17 AM, Michael Wood <esiotrot_at_gmail.com> wrote:

> On 19 August 2011 14:53, Daniel Stenberg <daniel_at_haxx.se> wrote:
> > On Fri, 19 Aug 2011, amit paliwal wrote:
> [...]
> >> When we use CONNECT_ONLY option, after doing some transfer by
> >> curl_easy_send() and curl_easy_recv(), is it possible to use
> >> curl_easy_perform() to send HTTP POST message.
> >
> > No, not on the same connection. CONNECT_ONLY is a one way street and once
> > you've taken the socket there's no way to return it to libcurl.
>
> I think this idea came from some speculation by Dan Fandrich:
>
> http://curl.haxx.se/mail/lib-2010-11/0215.html
>
> --
> Michael Wood <esiotrot_at_gmail.com>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-- 
Regards,
Amit

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