I'm trying to use IONGate as a credit card verification gateway. This is my code:
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"https://secure.iongate.com/iongate.asp?login=mylogin&amount=$amount&cardtype=$card_type&cardnum=$cardnum&expires=$expdate[other transaction vars here]");
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$response = curl_exec($ch);
$c_error = curl_error($ch);
$c_info = curl_getinfo($ch);
echo 'err '.$c_error;
echo "url ".$c_info["url"]."<br>";
echo "http code ".$c_info["http_code"]."<br>";
echo "header size ".$c_info["header_size"]."<br>";
echo "request size ".$c_info["request_size"]."<br>";
curl_close($ch);
This is what I get back:
err Couldn't resolve host 'secure.iongate.com'
url https://secure.iongate.com/iongate.asp?[all vars appearing correctly here]
code 0
header size 0
request size 0
The iongate site is working, as I have used one of their test scripts and gotten it to connect.
Can anyone make any suggestions? Is there something wrong with my cURL?
Environment: RH 7.1, Apache 1.3.20, PHP 4.0.6, cURL 7.9
Thanks,
Sheila