You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Juanjo <ju...@telefonica.net> on 2009/12/17 20:17:47 UTC
HTTP/1.0 - 417 Expectation failed
Hi,
I am receiving this header from a server
HTTP/1.0 - 417 Expectation failed
How can I solve this from my client?
How can I remove header Expect: 100-Continue?
I used:
HttpParams params = new BasicHttpParams();
params.setParameter ("http.protocol.handle-redirects",false);
but it doesn't work.
Thanks in advance
JJ
Re: HTTP/1.0 - 417 Expectation failed
Posted by Oleg Kalnichevski <ol...@apache.org>.
Juanjo wrote:
> Great !!
>
> Thanks
> JJ
>
> -----Mensaje original-----
> De: Sam Crawford [mailto:samcrawford@gmail.com]
> Enviado el: jueves, 17 de diciembre de 2009 20:39
> Para: HttpClient User Discussion
> Asunto: Re: HTTP/1.0 - 417 Expectation failed
>
> Try:
>
> params.setParameter("http.protocol.expect-continue",false);
>
> I'm pretty sure I read that it's enabled by default in 4.0, but is changing
> to be disabled by default in an upcoming version.
>
> Thanks,
>
> Sam
>
JJ,
Since the target server appears to support HTTP/1.0 only, you should
configure HttpClient to use HTTP/1.0 as well. This will also effectively
disable the use of 'expect-continue' handshake.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
RE: HTTP/1.0 - 417 Expectation failed
Posted by Juanjo <ju...@telefonica.net>.
Great !!
Thanks
JJ
-----Mensaje original-----
De: Sam Crawford [mailto:samcrawford@gmail.com]
Enviado el: jueves, 17 de diciembre de 2009 20:39
Para: HttpClient User Discussion
Asunto: Re: HTTP/1.0 - 417 Expectation failed
Try:
params.setParameter("http.protocol.expect-continue",false);
I'm pretty sure I read that it's enabled by default in 4.0, but is changing
to be disabled by default in an upcoming version.
Thanks,
Sam
2009/12/17 Juanjo <ju...@telefonica.net>:
> Hi,
>
> I am receiving this header from a server
>
> HTTP/1.0 - 417 Expectation failed
>
> How can I solve this from my client?
>
> How can I remove header Expect: 100-Continue?
>
> I used:
>
> HttpParams params = new BasicHttpParams();
> params.setParameter ("http.protocol.handle-redirects",false);
>
> but it doesn't work.
>
>
> Thanks in advance
>
> JJ
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: HTTP/1.0 - 417 Expectation failed
Posted by Sam Crawford <sa...@gmail.com>.
Try:
params.setParameter("http.protocol.expect-continue",false);
I'm pretty sure I read that it's enabled by default in 4.0, but is
changing to be disabled by default in an upcoming version.
Thanks,
Sam
2009/12/17 Juanjo <ju...@telefonica.net>:
> Hi,
>
> I am receiving this header from a server
>
> HTTP/1.0 - 417 Expectation failed
>
> How can I solve this from my client?
>
> How can I remove header Expect: 100-Continue?
>
> I used:
>
> HttpParams params = new BasicHttpParams();
> params.setParameter ("http.protocol.handle-redirects",false);
>
> but it doesn't work.
>
>
> Thanks in advance
>
> JJ
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org