Has anyone had a problem using curl with ssl, posting a large amount of data? This is not a file, it's in memory.
curl -3 -H "application/x-www-form-urlencoded" -d "xml=some really big base64 encoded xml here" -k https://www.anyserver.com
I have run this using exec and back ticks.
I have run it directly on the dos command line and on a Sun unix command line.
I have also tried phpcurl:
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //return as a variable
curl_setopt($ch, CURLOPT_POST, 1); //set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, $request); //set the POST variables
curl_setopt($ch, CURLOPT_INFILESIZE, 3000000); // Should not need, desperation
$response = curl_exec($ch); //run the whole process and return the response
curl_close($ch); //close the curl handle
Now, all of these methods seem to work fine if I don't use ssl. It also works fine if I use small XML's. I must use a form style POST per my vendor's requirements.
Any ideas?