I've been trying to send a POST to Apache 2.x using cURL. In itself, that's very easy to do. However, I run modsecurity and when cURL sends a POST that's too large, it actually decides to break the transfer down using an Expect: 100-continue header. That in itself sound good.
Some people said that you could override the Expect by adding the curl option to add a header like this:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
This sounds all nice, however, it only removes the header from the request, it does not prevent the errors with modsecurity. Not only that, the curl header