Hi David,

David Daney wrote:

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.

I meant not the patch to remove the expect usage itself. I more thought
of if there are actually places where it should be enabled in the remaining
codebase after its removed as default (e.g. wiht the method you showed below).

OK, I will try to come up with a patch for the removal.

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");

Thanks, wouldn't have thought of this myself. Too obvious :-)

Wolfgang



Reply via email to