cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: tunneling proxies, CURLOPT_PORT, and SOCKS v4 support

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 28 Jul 2006 23:08:08 +0200 (CEST)

On Fri, 28 Jul 2006, Terra Frost wrote:

> CURLOPT_HTTPPROXYTUNNEL's being set allows one to tunnel through a proxy.
> Normally, however, one can tunnel through an arbitrary number of proxies
> that support CONNECT. Does cURL only allow one to tunnel once?

Yes, but feel free to add support for more...

> Also, CURLOPT_PORT's value is described as "an alternative port number to
> connect to", however, CURLOPT_URL already allows a URL to be added. Does
> this mean that if it can't connect on that port, it'll try to connect on
> this port?

No, it means the port given with CURLOPT_PORT simply overrides the one used
within the URL.

> Finally, it doesn't look to me as though SOCKS v4 is supported by cURL. Is
> this correct or am I just reading the documentation to quickly?

SOCKS4 is supported since 7.15.3.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-07-28