Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 53329 invoked from network); 19 Dec 2005 23:47:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 23:47:57 -0000 Received: (qmail 68646 invoked by uid 500); 19 Dec 2005 23:47:51 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 68595 invoked by uid 500); 19 Dec 2005 23:47:51 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 68584 invoked by uid 99); 19 Dec 2005 23:47:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 15:47:51 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xiaobo.yang@gmail.com designates 64.233.162.201 as permitted sender) Received: from [64.233.162.201] (HELO zproxy.gmail.com) (64.233.162.201) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 15:47:50 -0800 Received: by zproxy.gmail.com with SMTP id 8so1355865nzo for ; Mon, 19 Dec 2005 15:47:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=P4mVdmbajoGcTF8lFFSx3aUaM1xo7pscYWsA5q1qFYAKRPOPoUG1j2BMIDJffr/6qf/IXbDbt/uk7v6jY/eIzLgKiIe7bhsm16yFjSN7wrPzzNxHg0aCzU+WD6u0U8/9L9D4P+Eg/fwgKXpoEJwi2sUiZBImgg628wS9G3Sr2NE= Received: by 10.64.131.17 with SMTP id e17mr3555284qbd; Mon, 19 Dec 2005 15:47:28 -0800 (PST) Received: by 10.64.156.5 with HTTP; Mon, 19 Dec 2005 15:47:28 -0800 (PST) Message-ID: Date: Mon, 19 Dec 2005 23:47:28 +0000 From: Xiaobo Yang To: commons-user@jakarta.apache.org Subject: [HttpClient] How to output the http request body? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19456_28660389.1135036048712" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_19456_28660389.1135036048712 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I managed to output the http request head by adding a println statement in HttpConnection.java (write method). When I tried to output the http request body, I found it to be a OutputStream object. Could anybody tell me how to print out the http request body? Also I wonder how to output the http response for debugging purpose. Thanks in advanced. Regards, Xiaobo Yang ------=_Part_19456_28660389.1135036048712--