Cevaplar
-
$ch = curl_init(); // Initialize curl handle curl_setopt($ch, CURLOPT_URL, $url); // Set the url curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Return as a variable curl_setopt($ch, CURLOPT_POST, 1); // Set POST method curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml')); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); // Set the POST variables $response = curl_exec($ch); // Run the whole process and return the response curl_close($ch); // Close the curl handle
şeklinde çözüldü.