Skip to main content
deleted 32 characters in body
Source Link

This will work

$args = array( 'headers' => array("Accept" => "application/json"));
$file = wp_safe_remote_get('http://xxxxxxxx.xxxx/xapix/xjson/xxxxx.php', $args);

headers is an array. Not a string . Try to pass header as a string

This will work

$args = array( 'headers' => array("Accept" => "application/json"));
$file = wp_safe_remote_get('http://xxxxxxxx.xxxx/xapix/xjson/xxxxx.php', $args);

headers is an array. Not a string . Try to pass header as a string

This will work

$args = array( 'headers' => array("Accept" => "application/json"));
$file = wp_safe_remote_get('http://xxxxxxxx.xxxx/xapix/xjson/xxxxx.php', $args);

headers is an array. Not a string .

Source Link

This will work

$args = array( 'headers' => array("Accept" => "application/json"));
$file = wp_safe_remote_get('http://xxxxxxxx.xxxx/xapix/xjson/xxxxx.php', $args);

headers is an array. Not a string . Try to pass header as a string