hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy801 <sandy...@gmail.com>
Subject escaped absolute path not valid error with URLs having GB18030 or japansese characters in them
Date Tue, 12 Jan 2010 09:27:39 GMT

I have a PostMethod instance, to which I set URI using set URI API. This
always gives error "escaped absolute path not valid" whenever URL has
chinese or japanese characters in it. How do I make sure URI for POSTMethod
is executed properly. 

I tried sing HTTPMethodParams to set charset for HTTP ELEMENT and HTTP URL
Charset but no use.
Here is code snippet. 

PostMethod method = new PostMethod();

HttpMethodParams params = new HttpMethodParams();
 method.addParameter(HttpMethodParams.HTTP_ELEMENT_CHARSET, "UTF-8");
 method.addParameter(HttpMethodParams.HTTP_URI_CHARSET, "UTF-8");

method.setURI(new URI(urlString));//This call fails

please help.


View this message in context: http://old.nabble.com/escaped-absolute-path-not-valid-error-with-URLs-having-GB18030-or-japansese-characters-in-them-tp27124775p27124775.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message