S
Sven Junge
Hello,
I'm behind a Firewall and trying to connect with the following code to an
inet-address:
URL url = new URL(urlStr);
InputStream uin = url.openStream();
BufferedReader in = new BufferedReader( new InputStreamReader(uin));
boolean more = true;
while (more)
{
String line = in.readLine();
if (line==null)
more = false;
else
System.out.println( line );
}
My problem is that I can read out every HTML-code I get from websites within
the LAN, but by trying to connect to public sites in the net I only get this
exception:
"java.net.SocketException: Unexpected end of file from server"
Thanks for your help!
Sven Junge
I'm behind a Firewall and trying to connect with the following code to an
inet-address:
URL url = new URL(urlStr);
InputStream uin = url.openStream();
BufferedReader in = new BufferedReader( new InputStreamReader(uin));
boolean more = true;
while (more)
{
String line = in.readLine();
if (line==null)
more = false;
else
System.out.println( line );
}
My problem is that I can read out every HTML-code I get from websites within
the LAN, but by trying to connect to public sites in the net I only get this
exception:
"java.net.SocketException: Unexpected end of file from server"
Thanks for your help!
Sven Junge