Flitig postare
|
|
Reg.datum: Dec 2003
Inlägg: 422
|
|
Flitig postare
Reg.datum: Dec 2003
Inlägg: 422
|
Jag kopierade lite kod där jag behandlar svaret. Kan vara i html, xml eller annat...
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://....");
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
$result=curl_exec ($ch);
$response = curl_getinfo( $ch );
$request_header_info = curl_getinfo($ch, CURLINFO_HEADER_OUT);
// $result innehåller svaret...
|