Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-27 Thread René J . V . Bertin
Thiago Macieira wrote: >> But again, even if those are exchangeable, why is QUrlQuery better? As far >> as I can tell I'd be using that class or QUrl to construct something that's >> not an URL. > > Because you're encoding something that is part of a URL's query. It's the same > encoding. I was

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-27 Thread Thiago Macieira
On Sunday, 27 August 2017 01:47:49 PDT René J. V. Bertin wrote: > Thiago Macieira wrote: > >> 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 t

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-27 Thread René J . V . Bertin
Thiago Macieira wrote: >> 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. > > Can you elaborate what comes out differently? Q

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-26 Thread Thiago Macieira
On Saturday, 26 August 2017 15:36:08 PDT René J. V. Bertin wrote: > > 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 cu

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-26 Thread René J . V . Bertin
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

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-26 Thread Thiago Macieira
On Saturday, 26 August 2017 04:37:44 PDT René J. V. Bertin wrote: > I found the explanation after I discovered that one can compare the > effective request headers with the ones from the reply in the slot that > gets called after the request has completed. > > In the end I had slightly different s

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-26 Thread René J . V . Bertin
Thiago Macieira wrote: > Was there a request to the server in the first place? Or did QNAM fail without > sending a request? I found the explanation after I discovered that one can compare the effective request headers with the ones from the reply in the slot that gets called after the request

Re: [Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-25 Thread Thiago Macieira
On Friday, 25 August 2017 06:05:15 PDT René J.V. Bertin wrote: > I'm porting a Qt5-based little downloader from MS Windows to Mac+Linux (both > have Qt 5.8.0). It uses a POST operation to authenticate with the server, > using code that works fine on MSWin and Linux. On Mac, I keep getting a > Forbi

[Interest] Code using QNetworkAccessManager::post() working on Linux but not on Mac

2017-08-25 Thread René J . V . Bertin
Hi, I'm porting a Qt5-based little downloader from MS Windows to Mac+Linux (both have Qt 5.8.0). It uses a POST operation to authenticate with the server, using code that works fine on MSWin and Linux. On Mac, I keep getting a Forbidden reply from the server (the MSWin executable functions fine