This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to open a web page and checks the http responce Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to open a web page and checks the http responce" Watch "how to open a web page and checks the http responce" New topic
Author

how to open a web page and checks the http responce

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
this is the code that I have written but I am still far achieving the results that I want!!! I want it to display the page not in html format, but the real page...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
The page you downloaded is HTML. What do you mean by displaying "the real page"?

If you want to display it you need to save it in a file, and then call a web browser to display it using something like Bare Bones Browser Launcher. Note that the page is not going to look good because it won't be able to load images, CSS, JavaScript etc. (Of course, it would be easier to use this to display the page directly, without downloading it first.)


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: how to open a web page and checks the http responce
 
Similar Threads
EOF on System.in
Connection timeout in URL connection
url connection query
Write bufferedreader to a file
output in a file