ssl-test icon indicating copy to clipboard operation
ssl-test copied to clipboard

How to use proxy

Open thiagodsalles opened this issue 3 years ago • 1 comments

Hi There! How are you?

I have a important question here... I'm using this gem on my project, but I need use a proxy to external network. How can I insert a proxy to get this access. Is it possible today?

thiagodsalles avatar Sep 30 '21 21:09 thiagodsalles

Hi,

This is not supported officially by the gem currently but I believe you can already tell Net::HTTP (what this gem is using) to use a proxy globally with an env variable, see: https://stackoverflow.com/a/23778707

With something like:

ENV['http_proxy'] = 'http://172.16.3.160:4226' # your http://address:port here

If you want to add native proxy configuration to this gem feel free to open a pull request ;)

jarthod avatar Oct 01 '21 19:10 jarthod