Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Reading URL Response

Tags:

java

I want to grab the source code of a page which contains the word "true" or "false". That's the only two words that would be on that page, no other formatting.

So I just need Java to URL connect to that page "http://example.com/example.php" and just grab the contents.

like image 375
whisky Avatar asked Feb 25 '23 15:02

whisky


1 Answers

Try this tutorial : Java URL example - Download the contents of a URL

like image 89
Ali Ben Messaoud Avatar answered Mar 08 '23 10:03

Ali Ben Messaoud