You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, July 6th 2004, 10:45am

Help required for KIO's http_post


this is my second post in this im unable to Post the
variable in KIOS's http_post call

my code look like following:

m_urlHost = KURL();

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 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....