2

I'm trying to develop an app that First connects to a http server (which is basically a proxy server running on port 8080) and saves its content to a string variable, then check to see if it contains some keywords, I tried using HttpClient and HttpURLConnection but both are returning empty strings with my URL http://myproxyaddress:8080/ , but returns the content of any other page like http://www.Google.com/.

1 Answer 1

1

For why nothing returns from your proxy server: There's a lot of information you're losing by not also looking at the headers in the HttpURLConnection. I suggest you read up on this and take a look at HttpURLConnection

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.