Hello, I am using curl to send some POST data to VeriSign so I can process transactions. The thing is, when I run the script, the location in the browser window never changes form my domain to verisign's domain. When I try to enter a test credit card number, verisign's back-end appends a bunch of things to the URL. The URL still contains my domain though so the request fails giving a "Page Not Found" error.
Here is the code I am using. In case you are wondering where these variables are coming from, this code is buried in a class designed to get data and send it to VeriSign.
if(!($curl = curl_init()))
print("Unable to initialize Curl resource!");
// configure the POST to VeriSign's server
curl_setopt($curl, CURLOPT_POST, TRUE);
// build the string containing all the POST information
$post_fields = 'LOGIN=' . $this->login .
'&PARTNER=' . $this->partner .
'&AMOUNT=' . $this->orderTotal .
'&TYPE=' . $this->type .
'&NAME=' . $this->name;
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_fields);
The URL in my address bar never changes from www.mydomain.com/myscript.php to https://payments.verisign.com/payflowlink
as I think it should. This seems to be causing a problem. Not only does VeriSign's form on this page function incorrectly from the screwy URL, but the layout and display of the page (they are using imbedded CSS styles) does not display correctly either.