<br><div><span class="gmail_quote">On 1/11/06, <b class="gmail_sendername">Till Adam</b> <<a href="mailto:adam@kde.org">adam@kde.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wednesday 11 January 2006 13:37, Pradeepto Bhattacharya wrote:<br>> Hi Aditya,<br>><br>> > I now have problems with KIO::http_post. I really don't want to bother<br>> > this list.<br>><br>> You were not bothering anybody, thats for sure :)
<br><br>I agree that such questions are not terribly off-topic on this list, which<br>isn't too busy yet. I'm kind of guessing that it might motivate others to<br>come forward with their questions, even if they think they are newbie and
<br>stupid, to have such traffice on this list and in the archives. But of course<br>you are free to post to kde-devel as well. Or both. Just my 0.2 Euro, of<br>course.</blockquote><div><br>
Thanks Pradeepto and Till.<br>
Here's what I am trying to do:<br>
<br>
QByteArray array;<br>
QBuffer buffer(array);<br>
QTextStream textStream(&buffer);<br>
textStream.setEncoding(QTextStream::UnicodeUTF8);<br>
textStream << dd << boundary << crlf;<br>
......<br>
buffer.close();<br>
KIO::TransferJob *job = KIO::http_post(url, array, false);<br>
job->addMetaData("content-type", "Content-Type: multipart/form-data; boundary=" + boundary);<br>
<br>
I have include kio/job.h to get the KIO namespace.<br>
But I am getting following warning:<br>
<br>
undefined reference to `KIO::http_post(KURL const&, QMemArray<char> const&, bool)'<br>
undefined reference to `KIO::Job::addMetaData(QString const&, QString const&)'<br>
<br>
The second argument required for http_post should be of type QByteArray
and my variable array is of that type but still it is considered as an
object of QMemArray.<br>
<br>
Thanks in advance for all your help.<br>
<br>
</div></div>-- <br>Aditya<br>=============================================================<br>PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>Coppermine Picture Gallery: <a href="http://coppermine.sf.net">
http://coppermine.sf.net</a><br>=============================================================