My app uses AsyncHttpClient library for network operation.My problem is i need to specify the proxy with port in order to connect to remote server.Any ideas to specify it??
Try like this
AsyncHttpClientConfig cf = new DefaultAsyncHttpClientConfig.Builder()
.setProxyServer(new ProxyServer.Builder("127.0.0.1", 38080)).build();
AsyncHttpClient c = new DefaultAsyncHttpClient(cf);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With