Hi Andrew,
It sounds like you are doing everything correctly. I also know that a number of people use HttpClient for exactly what you are describing, so it is possible. If you post a wire log <http://jakarta.apache.org/commons/httpclient/logging.html> of the post it should help to narrow things down.
Mike
On Jul 7, 2004, at 7:29 PM, Andrew van der Voort wrote:
OK, got diverted onto real work for awhile there...
I tried setting the content length header (though java streaming results in
a stream longer than the length of the data, I think). I also see that
StringRequestEntity supplies its length already so did nothing there to
mess with that in my StringObjectRequestEntity.
I have also tried the following instead of using a custom requet entity:
ByteArrayOutputStream os = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream( os );
oos.reset();
oos.writeObject( myString );
oos.flush();
method.setRequestEntity( new ByteArrayRequestEntity( os.toByteArray(),
"java-internal/java.lang.String" ) );
but I still get an EOFException at the server.
I don't know where to go from here with HttpClient. Surely it should be easier than this...
Andrew
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
