Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
danfuso
Posts: 2
Registered: ‎08-12-2013
My Device: Blackberry Z10 STL-003

QNetworkAccessManager error 299

I got the error 299 using QNetworkAccessManager. I haven't found any post about it so I'll give you the solution I've found.

 

I setted Chrome or Firefox User-Agent in the QNetworkRequest header and the problem was gone. For example:

 

QNetworkRequest request;
request.setRawHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36");

 

Hope it works for you.

Please use plain text.