I have a feeling there is just some basic info about exec that I do
not know. But I don't understand how to get back a response from a URL
using cURL (from the command line using exec()). Here's what I'm
trying to do: Sending some XML data to a URL (the Select Payment real
time gateway, if anyone's familiar...). Then I expect to get some XML
back.
Here's my code:
exec("/usr/local/bin/curl -m 120 -d \'$XPost\' https://$URL
-L",$output);
where $XPost is my XML
$output returns a blank array
If I try (just for kicks):
passthru("/usr/local/bin/curl -m 120 -d \'$XPost\' https://$URL
-L",$output);
then $output returns a 2.
Any help or direction is appreciated.
Thanks,
Courtney
not know. But I don't understand how to get back a response from a URL
using cURL (from the command line using exec()). Here's what I'm
trying to do: Sending some XML data to a URL (the Select Payment real
time gateway, if anyone's familiar...). Then I expect to get some XML
back.
Here's my code:
exec("/usr/local/bin/curl -m 120 -d \'$XPost\' https://$URL
-L",$output);
where $XPost is my XML
$output returns a blank array
If I try (just for kicks):
passthru("/usr/local/bin/curl -m 120 -d \'$XPost\' https://$URL
-L",$output);
then $output returns a 2.
Any help or direction is appreciated.
Thanks,
Courtney
Comment