PDA

View Full Version : How to Send a Record in a Database using HTTP POST Method in Qt.



shrutiravi
12th April 2013, 07:03
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

anda_skoa
12th April 2013, 19:46
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,
_