+# coding: utf-8\r
\r
-def pomper(r)\r
- Dir::foreach(r){|f|\r
- next if f[0,1] == '.'\r
- fichier = (r == '.' ? '' : r + "/") + f\r
- if File::directory?(fichier)\r
- pomper(fichier) \r
- else\r
- p fichier \r
+# doc : http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html\r
+Net::HTTP.version_1_2\r
+\r
+# hack : http://arosien.blogspot.com/2007/06/increasing-rubys-netbufferedio-buffer.html\r
+module Net\r
+ class BufferedIO\r
+ def rbuf_fill\r
+ timeout(@read_timeout) { @rbuf << @io.sysread(32768) }\r
end\r
- }\r
+ end\r
end\r
\r
-pomper("F:\\films")
\ No newline at end of file
+connexion = Net::HTTP::new('www.allocine.fr').start\r
+connexion.finish\r
+html = connexion.get("/film/fichefilm_gen_cfilm=120576.html").body \r
+p html
\ No newline at end of file