Hello
this is my second post in this sequence...as im unable to Post the
form
variable in KIOS's http_post call
my code look like following:
m_urlHost = KURL();
m_urlHost.setProtocol("http");
m_urlHost.setHost("myserver.com");
m_urlHost.setPath("/test.php");
m_PostData = "txtname='SAK'"; // form varialble to post
QByteArray postByteData;
postByteData.setRawData(m_PostData, m_PostData.length() );
m_httpPostJob = KIO::http_post( m_urlHost, postByteData, false ); //
return * KIO::Transfer
m_httpPostJob->addMetaData("content-type:", "Content-Type:
application/x-www-form-urlencoded" );
connect( m_httpPostJob,SIGNAL(data ( KIO::Job *, const QByteArray &)),
this, SLOT( slot_data ( KIO::Job *, const QByteArray &)));
connect( m_httpPostJob,SIGNAL(result(KIO::Job
*)),this,SLOT(slot_result(KIO::Job *)));
i have implemented all the slot...data is being retrieved in data and
resut occurs at proper finish...and im getting server's generated outpu
too...but it seems my POST variable txtname is not being sent from
client b.c it never has been never received on server.... i have
monitored at server side ....
can any one plz help me in this situation..where i am doing wrong in
form variable posting....
Thanks
Sheraz