cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP CONNECT Method support

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 24 Apr 2008 23:05:14 -0700

On Fri, Apr 25, 2008 at 11:22:15AM +0530, vaibhav bindroo wrote:
> I meant to say that after establishing the HTTP Proxy tunnel using libcurl
> (CURLOPT_HTTPPROXYTUNNEL) option, i want to use the socket as a normal socket
> for doing TCP operations since the tunnel is already established . But I cant
> get the sockfd value through easy interface because there is no callback
> provided for the same but it is possible through multi-interface because of the
> socket_callback option.
> I want to use libcurl to establish a HTTP Proxy tunnel for me , get me the
> sockfd and then i can use it on my own for TCP and not HTTP operations .Is
> that possible without using multi-interface ?
>
> Any pointers to that ??

You're looking for the CURLOPT_CONNECT_ONLY curl_easy_setopt() option and the
CURLINFO_LASTSOCKET curl_easy_getinfo() option.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-25