cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Default SOCKS proxy

From: Scott Dexter <scott.dexter_at_gmail.com>
Date: Thu, 8 Sep 2011 14:25:03 -0400

NM, I changed the curlrc and it worked fine:

I just put this in:

--socks5-hostname localhost
================================
Scott Dexter

"Time is an illusion, lunchtime doubly so"
    --Ford Prefect

On Thu, Sep 8, 2011 at 2:22 PM, Scott Dexter <scott.dexter_at_gmail.com> 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
>
> ================================
> Scott Dexter
>
> "Time is an illusion, lunchtime doubly so"
>     --Ford Prefect
>
>
>
>
> On Thu, Sep 8, 2011 at 2:07 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
>> On Thu, Sep 08, 2011 at 01:35:24PM -0400, Scott Dexter wrote:
>>> Is there a way to set a default SOCKS proxy for the command line curl,
>>> rather than having to specify each time?
>>
>> You can set the *_PROXY environment variables to a SOCKS proxy in recent
>> versions of curl. You can set also set a proxy in ~/.curlrc, which is loaded
>> automatically when curl starts.
>>
>>>>> 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
>>
>

-------------------------------------------------------------------
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