Server returned HTTP response code: 411

Hi

I am getting the following exception

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 411 for URL: http://somehost/media/test/chriskennedydqv01-3.wmv

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1133)

The java code follows

InputStream inputStream =null;

BufferedOutputStream outputStream =null;

URLConnection connection =new URL("http://somehost/media/test/chriskennedydqv01-3.wmv").openConnection();

inputStream = connection.getInputStream();

outputStream =new BufferedOutputStream(new FileOutputStream("Sample.wwmv"));

Can someone help me on this. Very urgent

[926 byte] By [ebrahim.faisala] at [2007-11-27 0:59:45]
# 1
Hi, HTTP Error 411:Length Required. The request requires the Content-Length HTTP request field to be specified.See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.12and URLConnection.addRequestPropertyHope that help, Jack
jack@square6a at 2007-7-11 23:34:13 > top of Java-index,Core,Core APIs...