On 17 September 2010 18:13, John Smith <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
