cURL / Mailing Lists / curl-library / Single Mail


Re: HTTP CONNECT Method support

From: Dan Fandrich <>
Date: Thu, 24 Apr 2008 10:40:34 -0700

On Thu, Apr 24, 2008 at 06:26:00PM +0530, vaibhav bindroo wrote:
> Hi all ,
> Is there any way in libcurl to perform a HTTP CONNECT operation ( as per RFC
> 2817 ) to go/authenticate through proxy servers and establish a tunnel with
> the peer-server such that we dont have to worry about the hassles of using GET/
> POST for communication ? We may instead use the formed HTTP tunnel and do a
> pure TCP-level data transmission and receive ( i.e use send() and recv() )
> using the sockfd from the tunnel .
> I hope I am clear on this ??

Did you read the man page?

$ man curl_easy_setopt | grep -i -A 6 proxytunnel
              Set the parameter to non-zero to get the library to
              tunnel all operations through a given HTTP proxy.
              There is a big difference between using a proxy and
              to tunnel through it. If you don't know what this
              means, you probably don't want this tunneling

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-24