hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: httpclient dont support ö ?
Date Thu, 18 Mar 2004 19:25:56 GMT
Sven
This is not entirely correct. One can still use
HttpMethod#setQueryString(String) to set hand-crafted query string

GetMethod httpget = new GetMethod("http://www.whatever.com/);
NameValuePair[] params = new NameValuePair[] {
	new NameValuePair("text", s)
};
httpget.setQueryString(EncodingUtil.formUrlEncode(params, "ISO-8859-1"));

Oleg

On Thu, 2004-03-18 at 19:45, Sven Köhler wrote:
> > There are two exceptions to this.  One is in the case of the URL query 
> > string, the other is for some authentication methods.
> > 
> > For more on the query string take a look at 
> > <http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#setQueryString(org.apache.commons.httpclient.NameValuePair[])>

> 
> So where's the sollution?
> 
> Using UTF-8 for the query-string is neither right nor wrong. The 
> server-side (servlet, perl-script, whatever) may simple use any charset 
> it likes to interpretate the query-string.
> It is a insufficiency of the HttpClient-API that i cannot specifiy the 
> charset used for the query-string.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message