Dandekar, Hrishikesh ([EMAIL PROTECTED]) 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 ([EMAIL PROTECTED]) http://www.urbanophile.com/arenn/