wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes need a java method to get a webpage source code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "need a java method to get a webpage source code" Watch "need a java method to get a webpage source code" New topic
Author

need a java method to get a webpage source code

Mona Alsh
Ranch Hand

Joined: Dec 20, 2012
Posts: 32
Hi
is there a built-in java method to get the source code of a webpage!!
like for example python has get_page(url)

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Check out the classes in java.net. Or check out the HttpClient project.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mona Alsh
Ranch Hand

Joined: Dec 20, 2012
Posts: 32
Bear Bibeault wrote:Check out the classes in java.net. Or check out the HttpClient project.

I couldn't find anything useful
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Then you really haven't looked thoroughly enough. Here's a start.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: need a java method to get a webpage source code