commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Novotny <novo...@gridsphere.org>
Subject using ^ in url HttpClient fails
Date Tue, 12 Jun 2007 04:27:55 GMT

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 
'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.<init>(HttpMethodBase.java:222)
     [java]     at 
org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)


But the link normally works fine if I type in my browser... do I need to 
do anything special to escape it?

Thanks, Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message