Results 1 to 2 of 2

Thread: QNetworkAccessManager:How to post multiple values of the same name ?

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QNetworkAccessManager:How to post multiple values of the same name ?

    For example:
    <form action="a.asp">
    <input name="bookcount" value="2" />
    <input name="bookcount" value="4" />
    <input type="submit" value="submit" />
    </form>

    I have multiple input in the form with the same name "bookcount" .
    In firefox , I can successfully post them and got all of the values at the server side ( request.form("bookcount")(i) ).

    But how can I post them using QNetworkAccessManager ? How to build the post data that can be processed by my server-side script ?
    太极美术工程师师? ?•¿
    http://stupidbeauty.com/Blog

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: QNetworkAccessManager:How to post multiple values of the same name ?

    Construct a network request, specifying URL where to sent, set "Content-Type" header and post it along with your data with QNetworkAccessManager:ost method.

Similar Threads

  1. QNetworkAccessManager post
    By januszmk in forum Newbie
    Replies: 2
    Last Post: 13th April 2012, 10:01
  2. QNetworkAccessManager and post method
    By sabbu in forum Newbie
    Replies: 12
    Last Post: 17th June 2011, 00:01
  3. POST and QNetworkAccessManager
    By hakermania in forum Newbie
    Replies: 1
    Last Post: 13th February 2011, 01:05
  4. QNetworkAccessManager::post() never returns
    By danc81 in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2009, 10:13
  5. QNetworkAccessManager double post
    By QPlace in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2009, 05:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.