Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 34353 invoked from network); 12 Feb 2008 19:12:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 19:12:45 -0000 Received: (qmail 65477 invoked by uid 500); 12 Feb 2008 19:12:37 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 65425 invoked by uid 500); 12 Feb 2008 19:12:37 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 65414 invoked by uid 99); 12 Feb 2008 19:12:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 11:12:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rickmcg@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 19:12:06 +0000 Received: by fg-out-1718.google.com with SMTP id d23so4901835fga.27 for ; Tue, 12 Feb 2008 11:12:13 -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:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=emTbkb+vlRQnfdsyOabGDASCFGNIzS1QZDn3rM8Z64o=; b=ETFJWCrghxGUiHnj3HWBlII7z4keKI88/6JX5JSrSjI3HGHZb/EXOMiVx0X9TwBELJsc8A3jXRpTlkA5IM5jz/tmLhGQhdP/Bkmdk0vlskyVGQbk++iPtacNwXbBws+piAREFV+GDM6BFAnS1X7K1g8L/J3Q1Ike33T41NK1Qis= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=uIWQkPJKlsUHMC85It3xODYaM1lHO7/NUxc0WUIdTDhImyVkQ7EXqjsd8WEHkVIGGKS0ef3tu91SIq2KZhcF8a1M+ntw86qUTTGtuR/21qRq7cpwn6l3S1LhhrASvMj5rkeZYCj9oewcEUICRNIowcfgxNplbjviGcDoWK9fTss= Received: by 10.86.78.4 with SMTP id a4mr1572604fgb.3.1202843533673; Tue, 12 Feb 2008 11:12:13 -0800 (PST) Received: from ?192.168.1.100? ( [68.191.49.248]) by mx.google.com with ESMTPS id e20sm692934fga.1.2008.02.12.11.12.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Feb 2008 11:12:12 -0800 (PST) Message-ID: <47B1EF90.1020803@gmail.com> Date: Tue, 12 Feb 2008 14:12:16 -0500 From: Rick McGuire Reply-To: rickmcg@gmail.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: [AsyncHttpClient] handling user-supplied request body (and content type) References: <99d1baac0802121034i4e2e1b23k59964cb49431c7b3@mail.gmail.com> In-Reply-To: <99d1baac0802121034i4e2e1b23k59964cb49431c7b3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sangjin Lee wrote: > While looking at an issue related with a form post (GERONIMO-3839), I > found an even more glaring issue. Namely, any caller-supplied request > body is ignored by HttpRequestEncoder. For example, you may want to > do a simple file upload using an octet stream. One can set the > content using HttpMessage.addContent(byte[]). I sort of wondered about that hard-coded content type when I was working on the header changes. I'm glad it bothered somebody else enough to investigate. Rick > > However, HttpRequestEncoder makes a specific assumption that all post > requests are form posts. Therefore, it ignores any message body, and > simply encodes the form into the body. We need to be able to handle > this properly. I'll file a bug shortly... > > Thanks, > Sangjin >