hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Smith <johnsmiththe...@gmail.com>
Subject Re: Utf-8 encoded redirect url results in Invalid redirect URI and Illegal character in path (URISyntaxException)
Date Fri, 22 Oct 2010 23:10:05 GMT
On Sat, Oct 23, 2010 at 1:34 AM, Oleg Kalnichevski <olegk@apache.org> wrote:
> On Sat, 2010-10-23 at 01:24 +0330, John Smith wrote:
>> Hi
>>
>> I'm receiving an utf-8 encoded redirect url's from a website, but it
>> seems that httpclient (?) treat them as US-ASCII (?) so it can not
>> handle them correctly.
>>
>
> URLs are not meant to have any characters other than US-ASCII.
> HttpClient's behavior is correct.
>
>
>> Is there any way to correct this behavior? Or is there any way to
>> convert incorrectly encoded string back to correct one (to be used in
>> a custom redirect handler)?
>>
>
> You can implement a custom redirect handler and reformat the redirect
> location as you see fit
>
> Hope this helps
>
> Oleg
>


Oleg,

Thanks for quick response, but I have not found any way to reformat an
incorrectly encoded string. I doubt that this possible at all.

Is there any way to make HttpClient read headers as UTF-8 (even with
modification to source code)?

Wishes,

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


Mime
View raw message