Welcome to Infomaniak Network's support centre, you will find the answers to the most frequently asked questions below.
Find 90% of your answers right away with the key word search:
|Hosting » PHP|
you need to add a user agent for your request to be accepted; indeed, we don't accept POST requests without user agent, and without the latter you will get a 403 error.
$curl = curl_init();
$data = array("requete" => $req0, "users_email" => $_POST["mail"]);
//curl_setopt($curl, CURLOPT_URL, "http://www.domain.com/import.php?requete_test_clijsters=$req0&users_email=".$_POST["mail"]);
curl_setopt($curl, CURLOPT_URL, "http://www.domain.com/import.php");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_USERAGENT, "CURL");