I believe that QHttp not supports HTTPS. Have you looked at QNetworkAccessManager.
I believe that QHttp not supports HTTPS. Have you looked at QNetworkAccessManager.
Thans !but for http Requests also we are facing the same problem!
Have a look at below code...
QHttp *http = new QHttp();
http->setHost("api.myspace.com");
QHttpRequestHeader header("POST", "/request_token");
header.setContentType("application/x-www-form-urlencoded");
header.setValue("Host","http://api.myspace.com");
header.setValue("Authorization:", authenticationHeader);
http->request(header,reply);
where authentication header will contain
(QPair("Host","http://api.myspace.com") ,
QPair("Authorization",
"OAuth realm="http%3A%2F%2Fapi.myspace.com",
oauth_nonce="Tm6Ebh5qps13PFPc",
oauth_timestamp="1241075491",
oauth_consumer_key="XXXX",
oauth_signature_method="HMAC-SHA1",
oauth_version="1.0",
oauth_signature="XXX"") )
same kind of output it is giving..
reply Status Code = 400
Reply Status Text = "HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Thu, 30 Apr 2009 07:15:21 GMT
nnCoection: close
Content-Length: 39
what might be the problem? am i doing any thing wrong in url formation?
Thanks in advance
Regards,
developer
Bookmarks