[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.
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database


Reply locked
This thread has been viewed 1551 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 19, 2019 12:29:21.