exec cURL to pass custom MIME headers
| From: | Kristopher Spencer-Yates | Date: | Fri, 30 Jan 2004 19:31:54 +0000 |
| Subject: | exec cURL to pass custom MIME headers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176391@lists.php.net to get a copy of this message | ||
Hi,
Normally I wouldn't do this but the cURL list seems to be in severe hibernation, ie. no activity. I'm in a bit of a jam w/ this and so here goes....
How do I get cURL to pass headers properly? It is ignoring my -H headers and sending its own default or whatever set of headers. One example, it submits as x-www-urlencoded-form or whatever but I want it to just send -H "my headers!". Can anyone point me in the right direction? I know I probably just need to change something simple here.. see below:
<?
$mime_headers="POST /AUTHORIZE HTTP/1.0\nMIME-Version: 1.0\nContent-type: application/X1";
$xml_content="{some XML - use your imagination here}";
exec("/usr/local/bin/curl -m 120 -H \"$mime_headers\" -d \"$xml_content\"
$merchant_URL:$merchant_PORT -L", $return_message_array, $return_number);
?>
So any ideas!?!???
Also, is cURL abandoned or what? I thought their list would be active to at least some degree.
Thanks in advance for any help.
Kris