Results 1 to 2 of 2

Thread: Simplest way to make an HTTP POST/GET request?

  1. #1
    Join Date
    Aug 2009
    Location
    United States
    Posts
    45
    Thanks
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Simplest way to make an HTTP POST/GET request?

    I'm new to QT and need to make an HTTP POST or GET request from a small program I'm working on. I've tried looking at some examples, but they all are different and seem overly complicated.

    Could anyone point me to minimalist example code to make an outbound POST or GET request? Either would work fine and I don't actually need to retrieve any output, all I need to do is pass data from the QT application to a MySQL server every 1/10 sec.

    I would really appreciate it if someone could direct me to example code.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Simplest way to make an HTTP POST/GET request?

    Have a look at QNetworkAccessManager.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    N3wb (8th September 2012)

Similar Threads

  1. How can I create HTTP post request with qt
    By vinayaka in forum Newbie
    Replies: 1
    Last Post: 10th December 2011, 09:00
  2. How to make a HTTP request in QTJambi
    By divanshu in forum Newbie
    Replies: 2
    Last Post: 28th June 2011, 06:29
  3. HTTP request POST in QT application
    By abdul_moiz in forum Newbie
    Replies: 5
    Last Post: 24th June 2011, 03:48
  4. Request ID of QNetworkaccessmanager get and post request
    By dineshkumar in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2011, 21:56
  5. 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.