Hi everybody ! I'm using VFS to get some quotes from Yahoo. I've made a
simple test class and i am not getting the expected result. VFS seems to
cache HTTP resources by its URL path (ignoring its parameters). Is this
a known/expected behaviour ? How can i change it ?

        Thanks in advance !

== My test method ==

FileSystemManager fsm = VFS.getManager();

FileObject f1 = fsm
 
.resolveFile("http://ichart.finance.yahoo.com/table.csv?s=ITAU3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv";);
FileName fn1 = fsm
 
.resolveURI("http://ichart.finance.yahoo.com/table.csv?s=ITAU3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv";);
System.out.println(f1);
System.out.println(fn1);

FileObject f2 = fsm
 
.resolveFile("http://ichart.finance.yahoo.com/table.csv?s=CSNA3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv";);
FileName fn2 = fsm
 
.resolveURI("http://ichart.finance.yahoo.com/table.csv?s=CSNA3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv";);
System.out.println(f2);
System.out.println(fn2);

== The output ==

Feb 19, 2007 6:23:30 PM org.apache.commons.vfs.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
http://ichart.finance.yahoo.com/table.csv?s=ITAU3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv
http://ichart.finance.yahoo.com/table.csv?s=ITAU3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv
http://ichart.finance.yahoo.com/table.csv?s=ITAU3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv
http://ichart.finance.yahoo.com/table.csv?s=CSNA3.SA&a=00&b=1&c=2007&d=00&e=22&f=2007&g=d&ignore=.csv



                
_______________________________________________________ 
Yahoo! Mail - Sempre a melhor opção para você! 
Experimente já e veja as novidades. 
http://br.yahoo.com/mailbeta/tudonovo/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to