On Fri, Sep 30, 2005 at 10:16:58AM +0600, Saminda Abeyruwan wrote: > Hi devs, > > I have found that some of the methods which switches betweed http > version being depricated. I'm using commons-httpclient-3.0-rc3 and > codecs to do my work. Seems couldn't find a way to select the transport > verion from this newest version. It always gives HTTP1.1. That's pretty > cool, but some politics says they need HTTP1.0. Hmmm..If it's possible > could someone please aid me on how to switch between version. > > Thanks > > Saminda >
This would do the trick HttpClient httpagent = new HttpClient(); httpagent.getParams().setVersion(HttpVersion.HTTP_1_0); For more details see http://jakarta.apache.org/commons/httpclient/preference-api.html Oleg > > --------------------------------------------------------------------- > 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]
