axios.get via proxy using http-proxy-agent
Closed this issue · 2 comments
maksimKorzh commented
Hello, Thomas, your geocoder is just great, but I was wondering whether it's possible to connect to nominatim.openstreetmap.org via proxy? I can't figure it out how to properly adjust axios.get(url....) request to use a given http agent, can you suggest something on how to achieve that goal? Please answer if you're available, thanks in advance, regards, Maksim Korzh.
thomasnordquist commented
Shouldn't it be as easy as this: axios/axios#1679 (comment)
There is also an example with socks-https-agent: https://www.npmjs.com/package/socks-proxy-agent
I personally prefer application wrapper like tsocks.
maksimKorzh commented
Fantastic! It works! Exactly what I needed! Thanks for your GREAT HELP!