Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outgoing requests through proxy #174

Closed
ghost opened this issue Nov 18, 2013 · 1 comment
Closed

Outgoing requests through proxy #174

ghost opened this issue Nov 18, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 18, 2013

Hey we're using a rails app and have a proxy for outgoing calls set up in ENV['PROXIMO_URL']

How can I configure curb to use these variable for outgoing calls?

@jheiss
Copy link
Contributor

jheiss commented Dec 11, 2013

This comment in the code pretty well explains the various ways of configuring a proxy:

https://github.com/taf2/curb/blob/master/lib/curl/easy.rb#L113

So, for example, this would probably work:

ENV['http_proxy'] = ENV['PROXIMO_URL']

@taf2 taf2 closed this as completed Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants