URLConnection
Aaron M. Renn
arenn at urbanophile.com
Fri May 14 17:41:13 PDT 1999
Dandekar, Hrishikesh (Hrishikesh_Dandekar at NAI.com) wrote:
> URl url= new URL(urlname);
> URLConnection connection = url.openConnection();
> ********* int length= connection.getContentLength(); **********
> .....
>
> However, the methods connection. { getContentLength() , getContentEncoding()
> , getcontentType() } fail by returning -1 or null...
> The same code works fine with sun's jvm...
>
> what could be the possible problem?
Try calling connection.connect() first.
--
Aaron M. Renn (arenn at urbanophile.com) http://www.urbanophile.com/arenn/
More information about the kaffe
mailing list