hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Backslash in URL
Date Fri, 17 Sep 2010 17:20:09 GMT
On 17 September 2010 18:13, John Smith <deaf.c0t@gmail.com> wrote:
> I couldn't understand why I can't use backslash (%5C) symbol in URL?
>
> I've created file "\mytest.php" in my Linux box and sent request in
> Firefox http://localhost/\mytest.php
> and everything worked fine.
>
> But when I try use HttpClient I get this error
> "java.net.URISyntaxException: Illegal character in path at index"

The Exception name is the clue here.

Try using a valid URL, i.e. encode any invalid characters.

> Browser can send request, HttpClient can't. Why did it happen?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

---------------------------------------------------------------------
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