[Qt-interest] QHttp getting empty response
Paul Miller
paul at fxtech.com
Tue Sep 27 18:11:19 CEST 2011
On 9/27/2011 10:47 AM, Thiago Macieira wrote:
> On Tuesday, 27 de September de 2011 10:31:24 Paul Miller wrote:
>> I have some QHttp code using Qt 4.7
>
> You should use QNetworkAccessManager, which has been available since 4.4.
Yeah I know but this code has been around since Qt 4.0. If it ain't
broke, right?
>> QHttpRequestHeader header("POST", url.toString());
>
> This use of QUrl is wrong. You should use url.toEncoded() and maybe add
> QUrl::RemoveScheme | QUrl::RemoveAuthority | QUrl::RemoveFragment.
Okay, thanks. But is there anything outside of Qt that would cause code
that has been working for years to suddenly stop, in a limited number of
cases?
I'll do a test with the new infrastructure and see if that resolves
anything.
More information about the Qt-interest-old
mailing list