001    package railo.commons.io.res.type.http;
002    
003    import java.io.IOException;
004    
005    import railo.aprint;
006    import railo.commons.io.IOUtil;
007    
008    public class Test {
009            public static void main(String[] args) throws IOException {
010                    HTTPResourceProvider p=(HTTPResourceProvider) new HTTPResourceProvider().init("https", null);
011                    HTTPResource res = (HTTPResource) p.getResource("https://www.google.com/reader/public/atom/user%2F11740182374692118732%2Flabel%2Fweb-rat.com");
012                    aprint.out("1");
013                    aprint.out(res.length());
014                    aprint.out("2");
015                    aprint.out(res.exists());
016                    aprint.out("3");
017                    aprint.out(res.isFile());
018                    aprint.out("4");
019                    aprint.out(IOUtil.toString(res,null).length());
020                    
021            }
022    }