Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 4226 invoked from network); 23 Sep 2004 12:05:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Sep 2004 12:05:57 -0000 Received: (qmail 28480 invoked by uid 500); 23 Sep 2004 12:05:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 28346 invoked by uid 500); 23 Sep 2004 12:05:49 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 28301 invoked by uid 99); 23 Sep 2004 12:05:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [194.242.150.12] (HELO vhost12.digitarus.com) (194.242.150.12) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Sep 2004 05:05:45 -0700 X-ClientAddr: 212.126.40.83 Received: from wiggly.org ([212.126.40.83]) (authenticated bits=0) by vhost12.digitarus.com (8.12.10/8.12.10) with ESMTP id i8NC9wmN024510 for ; Thu, 23 Sep 2004 13:09:58 +0100 Message-ID: <4152BC14.50608@wiggly.org> Date: Thu, 23 Sep 2004 13:05:40 +0100 From: Nigel Rantor User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: HTTP Client File Upload Question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Digitarus-vhost12-MailScanner-Information: Please contact Digitarus for more information X-Digitarus-vhost12-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I'm being bitten by a weird bug and I have a feeling it's because I'm not sure about content-transfer encodings vs charsets. I'm using httpclient 2 to upload to a perl CGI. Uploading from a browser works fine. Uploading from my program works fine for text files. Uploading from my program fails for binary files. The resulting file is corrupted, it seems as if the two high bits of every byte have been zeroed, so a byte val of FF gets transferred as 3F. Does this make any sense to anyone? TIA, N --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org