Mount the web as a directory. Use open
system call to open an URL!
apt-get install keyutils
if you have no /sbin/request-key.make
sudo insmod httpfs.ko
sudo mount -t httpfs none http:
- Try
cat http://baidu.com
/cat http://wtfismyip.com/text
/cat http://baidu.com/abc/def
- If you are tired,
sudo umount http: && sudo rmmod httpfs
- Only HTTP 1.0 is supported right now.
cp
is not supported since a little hack on VFS (to make it possible to open a directory).- Files are downloaded upon
open
. However, Range is a better choice. - Because of 2, it's hard to support larger files.
- There's little promise of further work, since the whole thing should be implemented in user space (using FUSE with libcurl).