Hi,
I have a HTML form, which calls a php script, using the POST method.
The php script basically validates the data enterd by a user, calls an asp page (hosted by another party on another website), with the validated data, plus some additional feilds.
To make the call to the asp page, I'm using the curl library.
reqbody="val1=aaa&val2=bbb";
$URL="http://anywhere/page.asp";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $reqbody);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$store = curl_exec ($ch);
curl_close ($ch);
For some reason, nothing is coming back from the remote web page.
The remote web page doesn't appear to be processing the data either, as the action that the remote web page takes isn't happening.
Ive called the remote web page directly from within an HTML form, to check everything there is OK. This worked fine.
Can anyone help?