Closed Rich2020 closed 3 years ago
Did you set up a proxy when requesting the website, like this:
import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
...
HttpHost proxy = new HttpHost("127.0.0.1", 9999, "http");
HttpClient httpClient = HttpClientBuilder.create().setProxy(proxy).build();
refer: https://stackoverflow.com/questions/4955644/apache-httpclient-4-1-proxy-settings
I'm using the demo code in the README:
I needed to modify
handleResonse
because the code sample does not call the super class:super.handleResponse(httpRequest, httpResponse, pipeline);
On click of a button, I launch Proxee in a new thread (otherwise it locks the UI). I then click another button to make a request to http://www.baidu.com/. I do this using Volley and have also tried with the Apache library. I have also tried minimising my app and using the browser to navigate to the baidu homepage.
However, neither the
match
nor thehandleResponse
functions fire. There is no indication that Proxee is running or doing anything, but if I try to start Proxee again, I do get an exceptionjava.net.BindException: Address already in use
, so I know it is running.What am I missing? Why is nothing intercepted?