On Thu, Jul 09, 2009 at 06:32:29PM +0200, Joan Balaguer? Valls wrote:
> Hello Oleg,
>
> Can I set the expect-continue handshake at httpclient level?
>
> HttpParams objHttpParams = new BasicHttpParams();
> HttpProtocolParams.setVersion(objHttpParams, HttpVersion.HTTP_1_1);
> ClientConnectionManager cm = new
> ThreadSafeClientConnManager(this.objHttpParams,
> HttpUtils.createDefaultSchemeRegistry());
>
> this.objHttp = new DefaultHttpClient(cm, this.objHttpParams);
>
> --> this.objHttpParams.setParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,
>
>Boolean.FALSE);
>
> Or should I set at request level?
>
You can do both.
Oleg
> Thanks,
>
> Joan.
>
>
> -
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org