Re: EXPECT-CONTINUE HANDSHAKE

2009-07-10 Thread Oleg Kalnichevski
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



EXPECT-CONTINUE HANDSHAKE

2009-07-09 Thread Joan Balagueró Valls
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?

Thanks,

Joan.


-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org