Bug or feature with QNetworkRequest in qt 4.8.0 ?
-
can anybody explain to me. Recently I have changed my qt version from 4.7.4 to 4.8.0. But now my applications (which are using http requests to server) not works at all. I'm using QNetworkAccessManager and QNetworkRequest for my POST requests. And I have found out that in versions before 4.8.0 POST requests were sended with content type = application/x-www-form-urlencoded. But now (in qt 4.8.0) requests are sended by default with content type = application/octet-stream. Therefore, server handled my request, can't parse POST parameters I am sending. Is this a bug or a feature, which had appeared with qt 4.8.0 release? Sorry for my bad English
-
I am not if it is a bug or a feature but as a workaround you can try to override the HTTP header using "QNetworkRequest::setHeader":http://developer.qt.nokia.com/doc/qt-4.8/qnetworkrequest.html#setHeader
-
Yes. I know. I have already done it. Just interetesting to know why Qt developers have not done it for backward compatibility
-
[quote author="BootGenius" date="1329296002"]Yes. I know. I have already done it. Just interetesting to know why Qt developers have not done it for backward compatibility[/quote]
In this case I recommend you to check for similar issues or to submit your question at https://bugreports.qt-project.org/
-
Ok. Thanks