I'm new in c++ from this afternoon and I am having a hard time.
I have the below line:
const QUrl command("http://192.168.11.11/subdomain/letters?t=somekeyword&p=%01")
But when the QUrl "command" is sent used in QNetworkAccessManager, it is actually being sent adding 25 after the % sign. Now I understand that QUrl is in TolerantMode, and is adding it thinking it's a user input error.
Unwanted result:
http://192.168.11.11/subdomain/letters?t=somekeyword&p=%2501
How would I prevent my url to be modified?
I tried to double my percent sign and inserting a backslash as well.
Any help is appreciated. Thanks.
This turned out to be a tricky problem. Here is the solution I came up with:
Code
Result
http://192.168.11.11/subdomain/letters?t=somekeyword&p=%01Notes
The solution relies on some behavior described in setEncodedQuery, which states
References