Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 9814 invoked from network); 8 Dec 2008 21:11:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2008 21:11:34 -0000 Received: (qmail 42938 invoked by uid 500); 8 Dec 2008 21:11:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 42920 invoked by uid 500); 8 Dec 2008 21:11:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42908 invoked by uid 99); 8 Dec 2008 21:11:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 13:11:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pvince@gmail.com designates 216.239.58.186 as permitted sender) Received: from [216.239.58.186] (HELO gv-out-0910.google.com) (216.239.58.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 21:11:22 +0000 Received: by gv-out-0910.google.com with SMTP id p33so292080gvf.23 for ; Mon, 08 Dec 2008 13:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=e0irSTBmxlEmknnewXv4LdR7vsmwFRzJ4AVBojm/des=; b=j6YOt+M5nrl9t9XqleW7lQQ8YplNp6g7ue541DzF1FHN2zf++7uONxr9m0Hp+HY+rC AKI95Yh202dcbuINmaveIxaINSmgJgWIs4SX29KLCFsEI1OzsDqFwShrBL5F27ufMKS4 0jgPoQpf0N0W44cZ2kP+7yVRsvt2C5LiUrEEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=d84j1YFl5bdTFOfbsDJlQZkSUTt+Wzun9oiuKBgTI3/R2ovI3ypeE7ImDrjN1Tk6og syEaY/tz52apHJXEg7J15uEHVaa2cH4/AznebNpZXiAOk3S8kbhI5SLzCFsIUU06Mto+ IawBCSOoVWSBC2EqaNCD26ihM4V2B3wr/eNSk= Received: by 10.103.165.18 with SMTP id s18mr1386338muo.124.1228770661523; Mon, 08 Dec 2008 13:11:01 -0800 (PST) Received: by 10.103.221.2 with HTTP; Mon, 8 Dec 2008 13:11:01 -0800 (PST) Message-ID: Date: Mon, 8 Dec 2008 16:11:01 -0500 From: Paul To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] CGI based WebDAV client and Transfer-Encoding: Chunked issue Hello, I am working on patching a program that was written by a different developer who is no longer with company. The program is a CGI program that acts as a WebDAV server. Recently we found a problem when a mac user running Mac OS 10.5 (Leopard) tries to paste a file into the WebDAV folder on their computer. Instead of putting the file on the server, it was creating a 0 kb file. After searching I managed to find out this was caused by Apple's switch to using "Transfer-Encoding: Chunked" rather than defining a Content-Length. The problem I am having is that I do not know how to find out the length of the input file that is coming from the client. According to the Transfer-Encoding specification, the data is supposed to be in the form of: "23 This is the data in the first chunk 1A and this is the second one 0" but when I do something like: " cin.read((char *) myBuffer, 30);" (note, 30 is just an example here), the result in the buffer starts with the text being sent, and does not include any chunk sizes. Am I reading in the data wrong? Is the Mac sending the wrong information? Is Apache filtering out the chunk data? Thanks for any help you can give me, Paul --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org