View Full Version : http POST with form encoding

9th June 2009, 21:54

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.

10th June 2009, 11:16
You can get all the way down to the QTcpSocket and send your data yourself. Also, the QNetworkAccessManager (and related classes) might be useful.