> I spent some time this week playing with the HTTP filesystem and ended > up with a quite simplified implementation: > > bzr branch lp:~aleksander-m/gnupdf/fsys-api > > Specifically here: > http://bazaar.launchpad.net/~aleksander-m/gnupdf/fsys-api/view/head:/src/base/pdf-fsys-http.c > > It would be great if you could take a look at it and comment it. I > already tested the file_open() part, where the HTTP-HEAD is done to know > if "Accept-Ranges: bytes" is supported. Also implemented the file_read() > part with a range request via HTTP-GET, but didn't have time to test it > yet. Note that I modified the utils/pdf-filereader program a bit to > easier test all this. Again, not saying that this is the way we should > go forward with the HTTP filesystem, just suggesting an easy > implementation. >
Reading from the HTTP filesystem in the branch now works using HTTP-GET requests with ranges: $> ./utils/pdf-filereader --fsys=http --input-file="http://es.gnu.org/~aleksander/web/index.html" -r Reading from 'http://es.gnu.org/~aleksander/web/index.html'... read 1024 bytes starting at offset 0... read 1024 bytes starting at offset 1024... read 1024 bytes starting at offset 2048... read 1024 bytes starting at offset 3072... read 1024 bytes starting at offset 4096... read 824 bytes starting at offset 5120... Each of the previous reads is a separate HTTP-GET request asking for specific byte ranges. Cheers, -- Aleksander
signature.asc
Description: This is a digitally signed message part