Meaningless Drivel is fun!*
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
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: 41604
    
  55
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to open a web page and checks the http responce