From kde-devel Mon Aug 14 01:40:11 2006 From: Craig Howard Date: Mon, 14 Aug 2006 01:40:11 +0000 To: kde-devel Subject: SlaveBase::put() and filesize Message-Id: <200608131840.11946.kde () choward ! ca> X-MARC-Message: https://marc.info/?l=kde-devel&m=115551966205788 I'm writing a kioslave that uses HTTP as its transport. The ::put() command is implemented in terms of an HTTP PUT command. Part of the specification of the service is that it requires the Content-Length header of the PUT request. Naturally, I need to write the header before I write the body where I do my dataReq() and readData() calls. How can I get the filesize of the source from within my ::put() method before reading any data? Thanks. -- Craig Howard craig@choward.ca Software Engineer - Amazon.com BMath CompSci - University of Waterloo >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<