This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39537
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to open a web page and checks the http responce
 
Similar Threads
url connection query
EOF on System.in
Write bufferedreader to a file
output in a file
Connection timeout in URL connection