03-14-2013 06:50 AM
Hi All, Need to pass string value in the header of QNetworkRequest. But there is no such function,they have provided only setRawHeader() & setHeader(). Kindly update me how to do that while using GET method in BB10.
Thanks & regards,
03-14-2013 08:18 AM
03-14-2013 12:42 PM
Actually setRawHeader() method takes only QbyteArray value but i want to pass QString value because on server side we have written code for String type header value.
Below code is working fine for BB 5,6,7 OS
HttpConnection connection = (HttpConnection) Connector.open(url + connectionParameters);
connection.setRequestProperty("Authorization", "OAuth " + Global.authToken);
Same work i want to do in BB 10.
03-14-2013 12:56 PM