Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 17691 invoked from network); 5 Nov 2008 22:12:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2008 22:12:38 -0000 Received: (qmail 54773 invoked by uid 500); 5 Nov 2008 22:12:44 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 54748 invoked by uid 500); 5 Nov 2008 22:12:44 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 54737 invoked by uid 99); 5 Nov 2008 22:12:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 14:12:44 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Natarajan_Valli@emc.com designates 128.222.32.20 as permitted sender) Received: from [128.222.32.20] (HELO mexforward.lss.emc.com) (128.222.32.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 22:11:25 +0000 Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.2.5/Switch-3.1.7) with ESMTP id mA5M4Yad011991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 5 Nov 2008 17:04:34 -0500 (EST) Received: from mailhub.lss.emc.com (sesha.lss.emc.com [10.254.144.12]) by hop04-l1d11-si01.isus.emc.com (Tablus Interceptor) for ; Wed, 5 Nov 2008 16:54:06 -0500 Received: from corpussmtp1.corp.emc.com (corpussmtp1.corp.emc.com [128.221.10.43]) by mailhub.lss.emc.com (Switch-3.2.5/Switch-3.1.7) with ESMTP id mA5M4Mg5025578 for ; Wed, 5 Nov 2008 17:04:22 -0500 (EST) From: Natarajan_Valli@emc.com Received: from CORPUSMX10C.corp.emc.com ([128.221.14.93]) by corpussmtp1.corp.emc.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Nov 2008 17:04:21 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to retireve parameter's value from a ResponseBody of a post method. Date: Wed, 5 Nov 2008 17:03:26 -0500 Message-ID: <7775458F94A771469DE0D8F473E7C59807AE0A6D@CORPUSMX10C.corp.emc.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to retireve parameter's value from a ResponseBody of a post method. thread-index: Ack/WLJg2P1tL1F7SB+mec0oY19nGgAOQnzQ References: To: X-OriginalArrivalTime: 05 Nov 2008 22:04:21.0708 (UTC) FILETIME=[74F9E8C0:01C93F92] X-RSA-Inspected: yes X-RSA-Classifications: X-RSA-Action: allow X-Virus-Checked: Checked by ClamAV on apache.org You could possibly set "ProjectID" as a response header and use one of getResponseHeader* methods of PostMethod to get this value... Hope this helps... Regards Valliappan -----Original Message----- From: Pronab Bhattacharyya [mailto:pronab.bhattacharyya@tcs.com]=20 Sent: Wednesday, November 05, 2008 7:10 AM To: httpclient-users@hc.apache.org Subject: How to retireve parameter's value from a ResponseBody of a post method.=20 I want to get a particular parameter's value that have in the response body of the Http post method. As we know that the getResponseBodyAsStream of PostMethod returns the=20 whole response body. But I only have to retrieve some parameters values For example, if we save the ResponseBody into a file we can find out that=20 it contains=20 . My concern is this projectID. Is there any direct way to get back this parameters value in my java class=20 ? regrads=20 Pronab Bhattacharyya Pronab Bhattacharyya ASE Tata Consultancy Services Victoria Park Building, Plot No. 37/2, Block GN, Salt Lake, Kolkata - 700091,West Bengal India Cell:- +91-9830367338 Mailto: pronab.bhattacharyya@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D Notice: The information contained in this e-mail message and/or attachments to it may contain=20 confidential or privileged information. If you are=20 not the intended recipient, any dissemination, use,=20 review, distribution, printing or copying of the=20 information contained in this e-mail message=20 and/or attachments to it are strictly prohibited. If=20 you have received this communication in error,=20 please notify us by reply e-mail or telephone and=20 immediately and permanently delete the message=20 and any attachments. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org