cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Default SOCKS proxy

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 8 Sep 2011 11:43:55 -0700

On Thu, Sep 08, 2011 at 02:22:16PM -0400, Scott Dexter wrote:
> proxy = 127.0.0.1:1080
>
> I tried this in my .curlrc and htting something through the proxy (SSH
> socks proxy) and only get this:
>
> * Empty reply from server
>
> I can, however hit it with Chrome using the same proxy

The --proxy option sets an HTTP proxy by default. You want the --socks4 or
--socks5 option to set a SOCKS proxy. Or, you can use URL syntax and set
--proxy socks4://localhost:1080 (which only works with recent versions).

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-08