I'm trying to do a curl post from php:
These are the options:
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $hashesJson);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Length: ' . strlen($hashesJson))
$hashesJson is json string.
I get the following error on the server:
Could not resolve host: api.wmspanel.com
If I try to do a call in the browser like this:
The api responds correctly.
The ip of the server is whitelisted.
Any ideas why ?
"Could not resolve host: api.wmspanel.com" means your dns on the server cannot resolver api.wmspanel.com host name. Please setup server correctly. You can try to access any other public web resource to check your server setup e.g curl -vvv https://wmspanel.com
and required to achieve the purposes illustrated in the
If you want to know more or withdraw your consent to all or some of the cookies, please
refer to the