can I use socks5 proxy with the httpclient ?
# ktor
p
can I use socks5 proxy with the httpclient ?
d
Configuring the Apache client, there is a
customizeClient
method with a lambda receiving an
HttpAsyncClientBuilder
from Apache
~ it has a
proxy
property from Apache that I guess should work for you~
HttpAsyncClientBuilder
has a
setConnectionManager
that could be used to do the trick from stackoverflow
if you have the chance to get it working, I believe it would be a good sample for the https://github.com/ktorio/ktor-samples repo (if you can make a PR with it)
K 1
p
Yeah, I messed around with it, but just scratched the Apache client for now and used okhttp with a proxy
I just needed to get something working which then lead us to scrapping the whole idea of using a proxy for our project due to complexity -- we'd have to make every user set their own proxy if needed or install the server locally. So... we're thinking to do it from the front end and have the JS client scrape the data and send it to the backend so we can work around the ip filter issues
👍 1