I am trying to pull information from another site. When I try and do
URL url = new URL("theSite");
url.getContent();
It throws a Connection refused: connect exception. Does this mean the site will not allow automated connections? Is there another way to get this information?
It can mean several things:
telnet is your friend, what happens when you:
telnet thesite 80 [or whatever port you require]
GET /URL HTTP/1.0
Host: thesite