Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 58426 invoked from network); 20 Aug 2004 15:41:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Aug 2004 15:41:37 -0000 Received: (qmail 31391 invoked by uid 500); 20 Aug 2004 15:41:35 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 31218 invoked by uid 500); 20 Aug 2004 15:41:34 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 31199 invoked by uid 99); 20 Aug 2004 15:41:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [57.80.136.23] (HELO kccxoex15.corp.kpmgconsulting.com) (57.80.136.23) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 20 Aug 2004 08:41:31 -0700 Received: from kccxoex06.corp.kpmgconsulting.com ([10.98.3.31]) by kccxoex15.corp.kpmgconsulting.com with InterScan Messaging Security Suite; Fri, 20 Aug 2004 15:41:17 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: PostMethod setQueryString Date: Fri, 20 Aug 2004 16:41:17 +0100 Message-ID: <825BF35A92B3F0479CC164ECBBE9376EE3B704@kccxoex06.corp.kpmgconsulting.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PostMethod setQueryString Thread-Index: AcSGypTnIJi81tqkQo+DEZLe657OegAACozA From: "Kalnichevski, Oleg" To: "Commons HttpClient Project" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Query params are part of the request URL and as such can be used with any= HTTP method. A request body on the other hand can be sent by so called= entity enclosing methods only (such as POST and PUT).= PostMethod.setRequestBody(NameValuePair[]) method takes a array of= name/value pairs and constructs a request body out of them using URL= encoding. PostMethod.setQueryString(NameValuePair[]) method can be used to= pass parameters as a part of the request URL HTH=0D Oleg -----Original Message----- From: Karthikeyani K [mailto:karthikeyanik@yahoo.com] Sent: Freitag, 20. August 2004 17:30 To: commons-httpclient-dev@jakarta.apache.org Subject: PostMethod setQueryString Hi, What is the difference between invoking setQueryString(NameValuePair[])= and setRequestBody(NameValuePair[]) on PostMethod. =0D When we try to use setQueryString(NameValuePair[]), we are getting the= response back. But when we try to use setRequestBody(NameValuePair[]), we are getting= the response 500. =0D Does PostMethod.setQueryString(NameValuePair[]) pass parameters in the= requestbody? Is it similar to PostMethod.setReqeustBody(NameValuePair[]). =0D Thanks, Karthi =0D =0D =0D --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. ***************************************************************************= ************************ The information in this email is confidential and may be legally= privileged. Access to this email by anyone other than the intended= addressee is unauthorized. If you are not the intended recipient of this= message, any review, disclosure, copying, distribution, retention, or any= action taken or omitted to be taken in reliance on it is prohibited and= may be unlawful. If you are not the intended recipient, please reply to= or forward a copy of this message to the sender and delete the message,= any attachments, and any copies thereof from your system. ***************************************************************************= ************************ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org