Thats actually what the apache commons-httpclient library does. One has
to explicitly enable the use of Expect. Thats how I found the bug/problem btw.

However, I have no clue at all in the HTTP / java.net area so I cannot
provide a patch which correctly would address such a change.

Well you understand it well enough to have created your first patch.

Beside that,
if it would be done the same way as this patch it would also introduce a
public method in the implementation class of URLConnection to enable Expect
header usage.

Not true: java.net.URLConnection.addRequestProperty("Expect", "100-Continue");

David Daney.

Reply via email to