Very similarly to the Expect Continue problem C# described here, HTTP POST Returns Error: 417 "Expectation Failed.", I was getting an "Expectation Failed" error from the server I was trying to POST to with a HttpPost object in Android.
The equivalent fix to prevent the request from using "expect continue" seems to be this:
httpPostInstance.getParams().setParameter(
CoreProtocolPNames.USE_EXPECT_CONTINUE,
Boolean.FALSE);
I found this at http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html under 1.6.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With