On Sun, 2008-09-21 at 14:11 -0700, ANEESHCH wrote: > Hi, > I tried the following options so far. > 1) Based on the unbuffered post, used > httppost.setRequestEntity(new InputStreamRequestEntity( > new FileInputStream(file), file.length())); > > It gave me the error, org.apache.commons.httpclient.ProtocolException: > Unbuffered entity enclosing request can not be repeated. in the system error > file. > > 2) Then I tried using FileRequestEntity, to make sure that content can be > recreated, as well as for marking the entity as repeatable > No error was reported any where, but the file was not uploaded to the remote > server. > Httpstatus code 404 was returned by the excecutemethod(); >
Status code 404 means the server has not found anything matching the Request-URI. This problem has nothing to do with HttpClient Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
