• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need a java method to get a webpage source code

 
Mona Alsh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the classes in java.net. Or check out the HttpClient project.
 
Mona Alsh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you really haven't looked thoroughly enough. Here's a start.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic