[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.
Paper beats rock. Scissors beats tiny ad.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


Reply locked
This thread has been viewed 1488 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 23, 2018 09:27:54.