我想从 nokia here location api 获取企业信息。下面是我的代码:
$NokiaPlaceURL = 'http://places.nlp.nokia.com/places/v1/discover/search?app_id='.APP_ID.'&app_code='.APP_CODE.'&at='.$at.'&q='.$keyword.'&size=10';
//echo $NokiaPlaceURL; exit;
$NokiaPlaceURL = file_get_contents($NokiaPlaceURL);
var_dump($NokiaPlaceURL);exit;
它给出了以下错误。我该如何解决这个问题?
Warning: file_get_contents(http://places.nlp.nokia.com/places/v1/discover/search?app_id=---&app_code=---&at=40.708322%2C-74.008881&q=food&size=10) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable in /opt/lampp/htdocs/test/nokia_here.php on line 29
bool(false)
谢谢