Knowledge base

Welcome to Infomaniak Network's support centre, you will find the answers to the most frequently asked questions below.

Hosting »  PHP
When for example you write
$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_exec($curl);
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_setopt($curl, CURLOPT_USERAGENT, "CURL");


Link to this answer :

Online support

Email support