Results 1 to 4 of 4

Thread: QUrl with percent signs Issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    3
    Qt products
    Qt4

    Question QUrl with percent signs Issue

    Hello everyone

    Just started QML a few days ago and I am a bit confused.

    I am trying to send a HTTP request to a webserver through QNetworkRequest.

    My QUrl should have this: http://127.0.0.1/subdomain/PW?t=Someword&p=%01
    But it seems that it changes it all the time to this: http://127.0.0.1/subdomain/PW?t=Someword&p=%2501

    How would I get QUrl to not change the percent sign and keep it as it is?

    I tried the below without success

    QUrl url = QUrl::fromEncoded("http%3A//127.0.0.1/subdomain/PW%3Ft%3DSomeword%26p%3D%2501");

    Any help would be appreciated
    thanks
    Last edited by K_rol; 22nd January 2014 at 04:24.

Similar Threads

  1. Replies: 1
    Last Post: 18th April 2012, 11:40
  2. QTranslator and polish signs
    By damon_1990 in forum Newbie
    Replies: 0
    Last Post: 11th December 2011, 23:04
  3. QUrl and https
    By TomASS in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 23:49
  4. QUrl and EUC-JP
    By Ignacio Serantes in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2009, 16:19
  5. QUrl parsing?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2008, 11:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.