Results 1 to 2 of 2

Thread: http POST with form encoding

  1. #1
    Join Date
    Jun 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default http POST with form encoding

    Hi,

    I need to do a HTTP POST to a webserver. The data has to be passed as form encoded.
    The web server doest have a method to take the POST parameters, but I need to fill them in POST body as form encoded. I tried with QHttp but unable to post and get reply properly.

    How can I fill the POST data in the body and send it to the webserver. Is there any way in which i can encode the data and send it.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: http POST with form encoding

    You can get all the way down to the QTcpSocket and send your data yourself. Also, the QNetworkAccessManager (and related classes) might be useful.

Similar Threads

  1. How to upload file to HTTP server (POST Method)
    By Alex Snet in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2011, 22:49
  2. HTTP GET authentication does not proceed
    By SailingDreams in forum Qt Programming
    Replies: 2
    Last Post: 1st June 2009, 01:27
  3. How do I send data with http post request?
    By Morea in forum Qt Programming
    Replies: 13
    Last Post: 21st January 2009, 22: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.