For a REST webservice I need to submit data with an exact format:
The sample parameter value for "test" should be exactly "a%3D" (which is the percentage encoding for "a="). When I enter the url in Firefox it arrives at the test.php script as intended. But when I use the QNetworkAccessManager "a%3D" is percentage encoded again and arriving as "a%253D" on the server. The whole Qt code is as follows:
I also tried to set strUrl without percentage encoding with the hope that it might be encoded:
QString strUrl = "http://myserver.com/test.php?test=a%3D";
but this returns "test=a=" instead of "test=a%3D" on the server.
QString strUrl = "http://myserver.com/test.php?test=a=";
How can fix this encoding problem?