Hey guys,
I'm trying to submit an XML document via curl.
It's not too big, a few 100kb. (505kb to be exact) and it always fails.
I know it's got to do with the size, because when I reduce the filesize it works.
My question is how do I increase the post size in my curl script?
Code:
function pushMMS($content) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'MYURL');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
if($output === false)
die(curl_error($ch));
curl_close ($ch);
return $output;
}
The error the die statement returns me is;
Originally Posted by Curl Error
Send failure: Connection was aborted
|
Does anyone know how to stop this error? I can't work out an answer...