Your Location is: Home > Php

how to fix wordpress get curl on online website

From: Trinidad View: 1554 joseph 

Question

on local the code working fine, but on online website

this fakejson working file https://jsonplaceholder.typicode.com/todos but

<?php
$response = wp_remote_get( 'https://client.medobay.com/facet/popularPackages/11-10-2020' );
var_dump($response);

output:

"cURL error 6: Could not resolve host: client.medobay.com"

Best answer