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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]