Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 22057 invoked from network); 28 Oct 2010 14:53:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 14:53:43 -0000 Received: (qmail 31102 invoked by uid 500); 28 Oct 2010 14:53:43 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 30940 invoked by uid 500); 28 Oct 2010 14:53:42 -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 30927 invoked by uid 99); 28 Oct 2010 14:53:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:53:42 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:53:34 +0000 Received: from [192.168.100.100] (unknown [213.55.131.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ok2cons2.nine.ch (Postfix) with ESMTPSA id A4F534BA2CD for ; Thu, 28 Oct 2010 16:53:13 +0200 (CEST) Subject: Re: Httppost - BasicNameValuePair issue From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <4CC9675A.3010702@ae-online.de> References: <4CC9675A.3010702@ae-online.de> Content-Type: text/plain; charset="UTF-8" Date: Thu, 28 Oct 2010 16:53:08 +0200 Message-ID: <1288277588.14364.9.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit On Thu, 2010-10-28 at 14:06 +0200, Andreas Ernst wrote: > Hi, > > i try to post datas to a page. > > Wireshark say Firefox uses this value: dnn$dnnSEARCH$txtSearch. > With httpclient it is: dnn%24dnnSEARCH%24txtSearch. > > I have no glue if this is the issue, that i did not get the expected > result, but how to set up that the value is like in Firefox. > > List nvps = new ArrayList(); > nvps.add(new BasicNameValuePair("dnn$ctr5516$Search$txtSearch", "")); > httppost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); > > TIA > Andreas You have to build a custom HttpEntity implementation similar to UrlEncodedFormEntity if you want to use a non-standard content encoding. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org