Answer the question
In order to leave comments, you need to log in
Stupid question about how SOCKS or PROXY are used when working with a network?
I'm not in the subject, so the question will probably seem stupid for the most I don't want to. I warn you in advance :slight_smile:
There is a setting in the browser to use socks or proxy. You specify and all requests go through them. Okay, Google, but how to use this when working with different gems? Well, for example, send a curl request or use the mail gem or something else. Take the file for example.
Those. somewhere it is possible to prescribe to the rails that all requests should be sent in this way or is it possible only through the existing settings of these gems?
Thank you.
Answer the question
In order to leave comments, you need to log in
Most of the gems that send requests have parameters for proxy configuration. For example:
Typhoeus.get(
url,
proxy: proxy.url,
proxyuserpwd: proxy.user_pass
)
export http_proxy=http://user:[email protected]:port
:.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question