QUrl encoding

  • Hi forum,
    Would it be possible to avoid to encode QUrl url for some characters ? I have an url which contains a '{' character which is automatically encoded with a %7B. The server does not support that form of url.
    Thanks for your advices.

  • Lifetime Qt Champion

    No this is not possible - according to RFC 1738 it's an unsafe character which needs to be escaped. So you should fix your server to accept correct encoded urls.

  • The problem was that CURL automatically removes the '{' escape character from the url. With CURL, the server does not see this escape character whereas with Qt it was transformed into '%7B'. The server did not see the same requests.
    Thanks for your help.

Log in to reply