Zulfi Khan
August 5th, 1999, 06:11 AM
Please see the following code & help me :
URL hp = new URL ("http://www.starwave.com/people/naughton/");
URLConnection hpCon = hp.openConnection ( );
int len = hpCon.getContentlength ( );
if (len > 0) {
System.out.println("Content-length: + len);
}
else {
System.out.print("No Content Available");
}
I am getting
"No Content Available"
Can somebody tell me what is the reason for this message ??
Zulfi.
URL hp = new URL ("http://www.starwave.com/people/naughton/");
URLConnection hpCon = hp.openConnection ( );
int len = hpCon.getContentlength ( );
if (len > 0) {
System.out.println("Content-length: + len);
}
else {
System.out.print("No Content Available");
}
I am getting
"No Content Available"
Can somebody tell me what is the reason for this message ??
Zulfi.