![]() Registered Member ![]()
|
Hi all,
I'm doing my first KDE project, which is a KIPI plugin to export pics to a online hosting service my company provides (I'm a total C++ newbie, please bear with me ![]() We have a rest API for the online service, and I need to send image files via put requests to a specific url. I'm using KIO::put for that, I'm able to use the "dataReq" and "result" signals on the job, but for some reason the "data" signal is not emitted. Some of the other rest calls do work as expected using KIO::get. For example, I get the following debug output:
Notice how there is a "readBody" action in that case, and the signal "data" is emitted. With KIO::put, I only get:
In that case, there is no "readBody", even though I know there is data and the mimetype signal is being emmited. Here is the code I use:
Is that expected behavior for KIO::put? How can I fix this? Ho, additionnaly, I have another problem with KIO::put, if the http url, where I want to put the file, contains a query string, it is dropped in the request. Is that expected too? For example, I might do:
but the kio http debug shows:
Is there any way to fix that too? Tim. |
![]() Administrator ![]()
|
As this is a issue with the KIO library ( which is part of KDELibs ) you may be able to find better help on the #kde-devel channel on Freenode or on the kde-devel@kde.org mailing list.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks bcooksley, I will send this message on the kde-devel mailing list.
In case someone else comes to these forums, I forgot to mention that I use kde 4.3.1 on gentoo. Tim. |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]