[Interest] Preventing QUrl from encoding query parameters
annulen at yandex.ru
Wed Aug 6 09:55:45 CEST 2014
06.08.2014, 09:30, "Thiago Macieira" <thiago.macieira at intel.com>:
> On Tuesday 05 August 2014 10:01:30 Lorne Sturtevant wrote:
>>> You can't do what you want. QUrl will normalise what it has to.
>> That's what I had feared. I was digging through the source I couldn't
>> find a hidden "force do things wrong" flag.
>>> So just make sure that you are running Qt 5.3, since there were bugs in
>>> previous versions. If that doesn't work, fix your server.
>> If it was my server, I'd fix it in an instant. But unfortunately it's a
>> 3rd party server which I can't modify. While I try to get them to fix
>> it, I think I'll just use curl spawned from QProcess.
> Just open a QTcpSocket to the server and send the GET command.
> And add this comment to your source code:
> // This looks like HTTP but isn't!
> // This is actually a binary protocol, since it doesn't conform
> // to RFC 2616 and RFC 3896.
To process server response coming to QTcpSocket one can use http-parser library 
More information about the Interest