[Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac
René J. V. Bertin
rjvbertin at gmail.com
Sun Aug 27 00:36:08 CEST 2017
Thiago Macieira wrote:
>> referer info. A bit surprising as that information isn't being added as far
>> as I can tell...
>
> Ok, so a man-in-the-middle. I'd never have guessed that.
I'd never have thought of that explanation either, and don't really understand
it. If no referer header is added by QNetworkRequest, how can filtering it make
a difference, regardless of what happens along the way?
>> m_netReply = m_accessManager->post(request, postData.query());
>>
>> but I don't see the option to obtain the intended encoding and I also doubt
>> if this would be an improvement.
>
> What's wrong with the encoding that QUrlQuery produces for you? HTTP Post
> defaults to application/x-www-form-urlencoded, which is what QUrlQuery
> produces for you.
I have no idea. I just note that the data with the current call is different
from what QUrlQuery gives; I didn't try the QUrlQuery result because I have no
idea of the potential implications of those differences.
> Submit a patch. QUrlQuery precedes initializer_lists.
I'll keep that in mind :)
R.
More information about the Interest
mailing list