curl-and-python

Re: socks (5) options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Aug 2011 13:28:37 +0200 (CEST)

On Thu, 18 Aug 2011, Ammar Lilamwala wrote:

> I am trying to use the following curl command in pycurl.
>
> 1. socks5 -gssapi -service
> 2. socks5 -gssapi -nec
> 3. socks5 -gssapi -hostname

I don't know this command so I'm a bit curious. They setup a SOCKS5 proxy for
which they require some sort of GSSAPI authentication? I can't recall any
support for that in libcurl.

> option 3 is to let the proxy resolve the hostname

Use CURLOPT_PROXYTYPE and set proxy type CURLPROXY_SOCKS5_HOSTNAME.

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXYTYPE

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2011-08-18