status:209 Error downloading
hello,
I have a problem with Nokia restful map API , when I try ti explore places nearby I receive an error in SIGNAL(finished(QNetworkReply*) which is :
299
"Error downloading [url]http://demo.places.nlp.nokia.com/places/v1/discover/explore?at=40.74917,-73.98529&app_id=demo_qCG24t50dHOwrLQ&app_code=NYKC67ShPhQwqaydGIW4yg&tf=plain&pretty=true[/url] - server replied: Not Acceptable"
I tried the same code with another link it works ok , so please help me in this issue
Re: status:209 Error downloading
Hi,
We would return Not Acceptable when the Accept contains only content types that we don’t serve.
We return json content if requested with Accept:application/json, we return html, if requested with Accept:text/html, and we return 406 Not Acceptable when requested with Accept:application/xml, since we don’t support XML.
daniel.
Re: status:209 Error downloading
thank you for your quick reply and helping me in solving the issue, I mange to solve the issue by adding request.setRawHeader("Accept","application/json"); to the code