Post a new question



Request to WMSpanel from the server

Cristi 2018-05-18 17:19:24 UTC in WMSPanel functionality

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_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($hashesJson))
$hashesJson is json string.

I get the following error on the server:
Could not resolve host:

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 ?

Alex Pokotilo 2018-05-19 02:19:52 UTC

"Could not resolve host:" means your dns on the server cannot resolver 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

Post a reply

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.