On Mon, 2006-04-24 at 14:43 +0100, [EMAIL PROTECTED] wrote: > Thanks, > I was looking at that thread, but was wondering if i could do this without > buffering the request > I had used the PostXML example on the website as a starting point. > > > I'll try it with the buffering now. >
Bernadette, You do not necessarily need to buffer the content, you just have to be able to re-create the input stream in case the request needs to be retried. If you do generate the request content dynamically and this process cannot be easily repeated (or it is too expensive to repeat), buffering seems the only way. Oleg > Thanks again for your patience. > > Bernadette > > > Quoting Oleg Kalnichevski <[EMAIL PROTECTED]>: > > > On Mon, 2006-04-24 at 14:06 +0100, [EMAIL PROTECTED] wrote: > > > Sorry resending as it mailer daemon rejected > > > with attachement 1 that gets to server > > > > > > > Taking things a step futhur i encounter more problems. > > > > > > > > Moving away from a demo that uses get , what i > > > > actually want to do is post a xml file down to server. > > > > I have this working on an internal server without going through > > firewall. > > > > > > > > However actual server is beyond the firewall. > > > > > > > > Attached I have two traces. > > > > The first trace is a post with no content. > > > > This gets to the target server via proxy, and responds with an > > approriate > > > > error > > > > message. > > > > > > > > Bernadette, > > > > I just recently had to answer a very similar question: > > > > http://www.mail-archive.com/httpclient-user% > > 40jakarta.apache.org/msg02387.html > > > > Oleg > > > > > > > > [postnofile.txt] > > > > > > > > However when I post up content, I get > > > > [postfile.txt] > > > > 06-04-24 13:39:39,134 DEBUG [main] > > .HttpConnection.closeSocketAndStreams() - > > > > enter HttpConnection.closeSockedAndStreams() > > > > 2006-04-24 13:39:39,144 DEBUG [main] .HttpConnection.releaseConnection() > > - > > > > enter > > > > HttpConnection.releaseConnection() > > > > 2006-04-24 13:39:39,144 DEBUG [main] .HttpConnection.releaseConnection() > > - > > > > Releasing connection back to connection manager. > > > > 2006-04-24 13:39:39,164 ERROR [main] .HttpXiamClient.postXMLToXiam() - > > > > postXMLToXiam() > > > > org.apache.commons.httpclient.ProtocolException: Unbuffered entity > > enclosing > > > > request can not be repeated. > > > > at > > > > > > > > > > org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:483) > > > > > > > > Now if i am not going thorugh firewall I can sent up content fine > > > > > > > > What does "Unbuffered entity enclosing > > > > request can not be repeated" mean? > > > > > > > > Regards > > > > Bernadette > > > > > > > > > > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > --------------------------------------------------------------------- > 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]
