• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML Source  RSS feed

 
An Raj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get the HTML View Source of a page..say Google.com

How can I get this using JAVA?

Thanks.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, welcome to the Ranch!

You'll probably wind up using HttpURLConnection. The Sun Custom Networking Tutorial will get you there pretty quickly.

I don't know if you've been hanging around the ranch long enough to pick up the style here. We try not to give code answers to questions, but just enough hints to get you going. It's a lot more fun and sticks in your brain better if you work it out yourself. So give the tutorial a try, then see if you can put together some code. If you get stuck just show us what you have so far.

Enjoy!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!