Hello all,
i am developing an application in Symbian S60 5th edition using qt.
I need help ,please help me how do i solve my problem.
Problem1:
I need to send data to server.In my server one .php file is there which is
responsible taking data (let say x) that is sent by Qhttp request and fetching
data from databse according to(x) and return to my application let say (y)
using QHTTP.
So kindly tell me how do i solve this problem using Qhttp and QHttpRequestHeader
This is my code :
url->setPath("http://www.fgtpl.com/fugenx1/public_html/smartphone/insert.php");
QMessageBox::information(this, tr("HTTP"),tr("in side function: %1.").arg(url->path()));
QHttpRequestHeader header("GET",url->path());
header.setValue("Host",url->host());
QHttp::ConnectionMode mode = url->scheme().toLower() =="https" ? QHttp::ConnectionModeHttps :QHttp::ConnectionModeHttp;
http->setHost(url->host(), mode,80);
xmldata.open(QBuffer::ReadWrite);
getRequestId = http->request(header);

Reply With Quote


