aspose file tools
The moose likes Java in General and the fly likes HttpUrlConnection is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

HttpUrlConnection is not working

enkhbat dash
Greenhorn

Joined: Aug 12, 2008
Posts: 11
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?


Be nice!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56153
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://jrebel.com/download
 
subject: HttpUrlConnection is not working
 
Similar Threads
HttpUrlConnection is not working
HttpUrlConnection is not working
post url connection not working
URL connection connectiontimeout and readtimeout issues
How to specify the name of the database