In my project I want to visit an url with some arguments and catch the return parameters. I take the following codes for test.
QUrl url = QString("http://localhost/test")
url.addQueryItem("test", QString("abc+bcd"));
But the arguments my server received is "abc bcd". I'm sure the error occured when url.addQueryItem executed but I don't know how to fix it. Simply modifying the '+' character by "%2B" doesn't work.
Who could help me? thanks very much!