[Logo]
Forums Register Login
HttpUrlConnection is not working
When I copy and paste http://www.google.com/search?q=test in address bar, it works perfectly. But when I using HttpUrlConnection to connect it, it doesn't work. Here is my code.




When I copy and paste link to address bar, it's accessing web via get method right? And code uses get method, too. Any suggestion and help?
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
What's wrong? Where are you going? Stop! Read this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


Reply locked
This thread has been viewed 1443 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 27, 2018 02:57:41.