Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 60775 invoked from network); 1 Mar 2006 13:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 13:35:40 -0000 Received: (qmail 83911 invoked by uid 500); 1 Mar 2006 13:36:17 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 83870 invoked by uid 500); 1 Mar 2006 13:36:17 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 83837 invoked by uid 99); 1 Mar 2006 13:36:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 05:36:17 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.197.87.197] (HELO herald.cybage.com) (203.197.87.197) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 05:36:16 -0800 Received: from ramitb ([192.168.37.89]) by herald.cybage.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Mar 2006 19:05:43 +0530 From: "Ramit bhardwaj" To: "'HttpClient User Discussion'" Subject: RE: query as byte array Date: Wed, 1 Mar 2006 19:05:43 +0530 Message-ID: <040a01c63d35$09cf9d40$5925a8c0@cybage.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <44228ab10603010517u4006cf03s700995c4de0c4769@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Thread-Index: AcY9MoVClq/Ufd8JQjeSrhi4Zt3pKAAAapsg X-OriginalArrivalTime: 01 Mar 2006 13:35:43.0197 (UTC) FILETIME=[09B3B0D0:01C63D35] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If you want to send the byte array in the post body use the following = code Suppose the xmlString you want to send is in xmlString variable. byte[] byteArrData =3D xmlString.getBytes("UTF-8");=20 ByteArrayInputStream bis =3D null; //Suppose your byte array is ->byteArrData then set that data in the constructor bis =3D new ByteArrayInputStream(byteArrData); //suppose your Post object is post then set this byte array input stream = to the request body. post.setRequestBody(bis);=20 Hope this helps -----Original Message----- From: Chaitanya Ravi [mailto:r.chaitanya@gmail.com]=20 Sent: Wednesday, March 01, 2006 6:47 PM To: HttpClient User Discussion Subject: Re: query as byte array Hey thankyou.. On 3/1/06, Oleg Kalnichevski wrote: > > On Wed, 2006-03-01 at 18:03 +0530, Chaitanya Ravi wrote: > > Simple: > > > > I want to send =FC (Utf-8) characters to server side. > > > > my query string is something like this: > > > > <%3Fxml%20version%3D"1.0"%20encoding%3D"UTF-8"%20standalone%3D"no"%3 > > F> > > > soap%2Fencoding%2F""> > > > > > > > > > > .... > >