Results 1 to 2 of 2

Thread: How to Send a Record in a Database using HTTP POST Method in Qt.

  1. #1
    Join Date
    Apr 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default How to Send a Record in a Database using HTTP POST Method in Qt.

    Hi,

    I am very new to Qt.
    I am trying to save a record in database by using HTTP Post Method. I have gone through several examples avaible on net but not getting the proper solution. Please help me out with a simple example in which I can send Emp_Id, Emp_Name and Emp_Status Columns by HTTP Post Method to a Website running HTTP services.

    It will be very helpful for me.

    ShrutiRavi

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to Send a Record in a Database using HTTP POST Method in Qt.

    That request does not contain even remotely enough information to even suggest potential solution yet alone give one.

    There is no such thing as a standard for web services, so each one has its own API, its own way on how it expects data to be formatted, etc.

    You will need to find out which URL to HTTP post to, how it expects the data to be transmitted, etc.

    For the actual post have a look at QNetworkAccessManager

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 6th February 2013, 12:18
  2. HTTP POST method
    By Macok in forum Qt Programming
    Replies: 5
    Last Post: 25th July 2010, 14:33
  3. Http Post method help
    By ravirdv in forum Qt Programming
    Replies: 0
    Last Post: 27th September 2009, 12:15
  4. 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.