Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 69189 invoked from network); 12 Jun 2007 10:20:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 10:20:47 -0000 Received: (qmail 84309 invoked by uid 500); 12 Jun 2007 10:20:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 84269 invoked by uid 500); 12 Jun 2007 10:20:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 84258 invoked by uid 99); 12 Jun 2007 10:20:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 03:20:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sebbaz@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 03:20:39 -0700 Received: by nz-out-0506.google.com with SMTP id 14so1350747nzn for ; Tue, 12 Jun 2007 03:20:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fa0HeiGl0kTg3o9uoRlYq3QW8TSZxbqwNmGkJ/K2zv4AobzuMWMh06T7OYLhljfu49A/8DXCxAlN16PcEGiFSctxxys5nCf/xBHyQfNRGGPXN+ZTLz605rMne0dJ/6yhXOnqilrk1G39UY74OD2Uxg0UzC6u1c5PNdoMaEKJhC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SYXUm7UTmh3SKrFvUvaWgX+o+uVZSTt3RHKLtJe+cciJK3svV475OKV424mPebYbRDcORr8nGtpqtiHS+f9kVhGZb9HurR0rpvFrKPT3IuvBpSQJQ+PigfslfP0QyUAxpDD9FpwGDv4VuqyJkr7i36TUQBhSh7KEgIot+jxtQ6c= Received: by 10.115.111.1 with SMTP id o1mr6505401wam.1181643618327; Tue, 12 Jun 2007 03:20:18 -0700 (PDT) Received: by 10.114.168.12 with HTTP; Tue, 12 Jun 2007 03:20:18 -0700 (PDT) Message-ID: <25aac9fc0706120320pd402caem85a1d7981c08cb6@mail.gmail.com> Date: Tue, 12 Jun 2007 11:20:18 +0100 From: sebb To: "Jakarta Commons Users List" Subject: Re: using ^ in url HttpClient fails In-Reply-To: <466E20CB.90904@gridsphere.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <466E20CB.90904@gridsphere.org> X-Virus-Checked: Checked by ClamAV on apache.org On 12/06/07, Jason Novotny wrote: > > If I have a URL with a ^ in it I get a failure: > > [java] > http://download.finance.yahoo.com/d/quotes.csv?s=^DJA&f=sl1d1t1c1ohgv&e=.csv > [java] Exception in thread "main" > java.lang.IllegalArgumentException: Invalid uri The character "^" is not valid in a URI > 'http://ichart.finance.yahoo.com/table.csv?s=^TIE&a=&b=&c=&d=&e=&f=&g=&ignore=.csv': > Invalid query > [java] at > org.apache.commons.httpclient.HttpMethodBase.(HttpMethodBase.java:222) > [java] at > org.apache.commons.httpclient.methods.GetMethod.(GetMethod.java:89) > > > But the link normally works fine if I type in my browser... do I need to Because the browser escapes it. > do anything special to escape it? You can hexify it as %5E. > Thanks, Jason > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org