Hello,
I'm doing some test on an apache 2.2.15 server with a little php/cURL script
and I found an odd behaviour.
My server always end up returning a 400 return code at 12284 bytes worth of
header data, even if I change LimitRequestFieldSize to 4096.
Does anyone now what could create that kind of problem?
(Here is the script I used)
#!/usr/bin/env php
<?php
$url = $argv[1];
$bytes = $argv[2];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Junk: ' . bin2hex(openssl_random_pseudo_bytes($bytes / 2)),
]);
$response = curl_exec($ch);
$info = curl_getinfo($ch);
echo 'Response Code: ' . $info['http_code'] . PHP_EOL;
curl_close($ch);
PS : I restarted httpd between tries and execute my script on localhost.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]