Hello Sanjeev, you best use a PostMethod for uploading: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/PostMethod.html
We don't have a file-based RequestEntity, but it should be easy to implement based on the code you've got: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/RequestEntity.html The method writeRequest() will give you the OutputStream. The various .setRequestProperty() calls translate to setting request headers before executing the method: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethod.html#addRequestHeader(java.lang.String,%20java.lang.String) hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
