Meaningless Drivel is fun!
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 63341
    
  70

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: 20128
    
  30

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need a java method to get a webpage source code
 
It's not a secret anymore!