Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Force Http/1.0 protocol using org.apache.commons.httpclient.HttpClient?

843833Feb 18 2008
I am using org.apache.commons.httpclient.HttpClient and org.apache.commons.httpclient.methods.PostMethod with a web service that requires me to post data using HTTP/1.0. According to their specs, "When using HTTP POST, the request needs to be sent via HTTP 1.0 (not HTTP 1.1). Requests sent via HTTP 1.1 do not return any response."

I can't find anyway to override the default protocol (which I assume in 1.5 is HTTP/1.1), nor have I been able to find any clues after an hour on google. Is htis possible?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2008
Added on Feb 18 2008
0 comments
303 views