I need to retrieve some XML code from asp file.
The asp needs to be executed, with CURL I get teh following warnings:
Warning: fopen("cashup_demo.php?user=0049000001138295&pass=cashup&prodid=27&curr=EUR&amount=20&msisdn=0613652227&partnerid=1","r") - Invalid argument in D:\home\benefits\userdev.nl\test\success.php on line 8
This is my code:
$ch = curl_init ("https://cashupweb.brodos.net/cashup/");
$fp = fopen ("cashup_demo.php?user=0049000001138295&pass=cashup&prodid=27&curr=EUR&amount=20&msisdn=0613652227&partnerid=1", "r");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$pin = curl_exec ($ch);
curl_close ($ch);
fclose ($fp);