Is there any way to disable the Expect: 100-Continue header in v.4 of
HttpClient? My current code (using a POST) looks like this:
HttpPost post = new HttpPost("http://192.168.241.118:80/auth/login/");
post.getParams().setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,
true);
System.out.println("ExpectContinue is " + post.expectContinue());
The return of expectContinue() gives false, but when I actually do the
execute with my DefaultHttpClient, the headers given are:
POST / HTTP/1.1
Content-Length: 35
Content-Type: application/x-www-form-urlencoded
Host: 192.168.241.118:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.0-beta2 (java 1.5)
Expect: 100-Continue
Lighttpd 1.4 can't handle the expect-continue line, so I need to shut
it off, but I'm not seeing how to do that. Any advice?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]