Hey Oleg,
the only one I've found is the browser cookie compatibility. Did you mean this?

============================

DefaultHttpClient client = new DefaultHttpClient();
client.getParams().setParameter("http.protocol.single-cookie-header", true);

============================

This didn't working. The error code remains the same.
The 'expect-continue' handshaking is already disabled.





Am 03.08.2010 16:55, schrieb Oleg Kalnichevski:
On Tue, 2010-08-03 at 16:51 +0200, Oleg Kalnichevski wrote:
On Tue, 2010-08-03 at 15:22 +0200, Work wrote:
Hi there.

I use the httpclient 4.0.1 to access a basic authentication protected
website.
My program performs a MULTIPART request. But the webserver (Microsoft
IIS) returns the error code 400 (Bad Request).
When submitting the same request as a POST (without the file),
everything works perfectly.

Try the browser compatibility mode.

Oleg

Oh, and turn off the 'expect-continue' handshaking. Older versions of
IIS do not support it properly.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to