Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 31386 invoked from network); 17 Sep 2010 17:20:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Sep 2010 17:20:37 -0000 Received: (qmail 96204 invoked by uid 500); 17 Sep 2010 17:20:37 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 96157 invoked by uid 500); 17 Sep 2010 17:20:36 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 96149 invoked by uid 99); 17 Sep 2010 17:20:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 17:20:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.216.51 as permitted sender) Received: from [209.85.216.51] (HELO mail-qw0-f51.google.com) (209.85.216.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 17:20:30 +0000 Received: by qwj9 with SMTP id 9so2233007qwj.10 for ; Fri, 17 Sep 2010 10:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=t0CLKB1gb+qtKGBfA/FwmToA9HJRZxm+VN29YBV+isQ=; b=Lgfp6KmRcOAWrnSFgSpvF96jhjfcKWFAJzk342tekEnBNmH14NeqrMFooAn0nl5cqS WNWKMFf0FQN34FztxoAHP8yAol0WBSYXPoawvezdvUzsyhit1qxhET2Gd6/pvrDaYD8f I4V+FKf+jY5Hp7uRWmp/gI3HpdzZiRFhBLoT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LcbwZyAaq+sOh5ronKvtG92i0iSPgUJZOLSukVyUTiAgpDh3k2aubp+rqq54guh2yF FYT8iirUapA/SKCRuDWAfULMf1cefvyCMkKkCi3oU+oG6TqThbbZy+OlKmGiPN4qmsum TK+B+CVjA7PW23Gl9J90lLnFnm5382ai7OqkE= MIME-Version: 1.0 Received: by 10.224.19.147 with SMTP id a19mr3552319qab.126.1284744009510; Fri, 17 Sep 2010 10:20:09 -0700 (PDT) Received: by 10.229.220.139 with HTTP; Fri, 17 Sep 2010 10:20:09 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Sep 2010 18:20:09 +0100 Message-ID: Subject: Re: Backslash in URL From: sebb To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 On 17 September 2010 18:13, John Smith 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