[Interest] Preventing QUrl from encoding query parameters
Thiago Macieira
thiago.macieira at intel.com
Wed Aug 6 07:29:57 CEST 2014
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.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list