kio_http bug

Joseph Wenninger jowenn at kde.org
Sun Jul 1 14:35:31 BST 2007


Hi !

I noticed the same problem. If it is not fixed yet, it really should be fixed. 
Don't know if it is a bug of the http kio slave or the kxmlrpcclient in 
kdepimlbs.

Kind regards
Joseph Wenninger

On Saturday 23 June 2007 03:18, Antonio Aloisio wrote:
> Hello! I'm working on kblogger and i've some problem with
> kdepimlibs/kxmlrpcall. Kxmlrpcall, use kio_http to post the XML request.
> I've observed that the first xml request that create the kio_http slave
> works fine,
> but the second one (that use the previous created kio_http slave) send a
> empty XML request.
>
> The bug is in
>     kdelibs/kioslave/http/http.cpp
> in
>     bool HTTPProtocol::sendBody()
> line:
>     if ( !m_bufPOST.isNull() )
>
> So, i've commented the line
>
>   // m_bufPOST will NOT be empty iff authentication was required before
> posting // the data OR a re-connect is requested from ::readHeader because
> the // connection was lost for some reason.
>   /*if ( !m_bufPOST.isNull() )
>   {
>     kDebug(7113) << "(" << m_pid << ") POST'ing saved data..." << endl;
>
>     result = 0;
>     length = m_bufPOST.size();
>   }
>   else*/
>
> and magically kxmlrpc /kblog /kblogger works fine!!!
> Probably the right solution isn't remove this if, but i want tell you
> that there are some problem here.
>
> Cheers,
> Antonio Aloisio

-- 
Even a loser wins every now and then
KATE developer - Joseph Wenninger <jowenn at kde.org>




More information about the kde-core-devel mailing list