Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 add bundle streaming to djvuserve

closed
nobody
None
5
2012-11-08
2005-03-30
No

I could not find an easy way to configure the web
server to serve indirects and bundles form the same
source document, so I added that functionality to
djvuserve. specifically:

http://somehost/dir/foo.djvu
serves up the first, indirect, as before

http://somehost/dir/foo.djvu/index.djvu/?djvuopts&page=35
serves up a particular page, indirect, as before

http://somehost/dir/foo.djvu/index.djvu?bundle
forces djvuserve to stream out the raw, bundled document

in the case of explicit requests for bundled documents,
a content-disposition header is added to the http
response that causes the browser to pop up a save
dialog with the appropriate filename as the default.

Chris

Discussion

  • patches djvuserve.cpp to add on-demand bundle streaming

     
  • Leon Bottou
    Leon Bottou
    2005-05-25

    Logged In: YES
    user_id=42774

    Seen it.
    Maybe we should distinguish
    ?bundled
    from
    ?download (with the Content-Disposition field)

    - L.

     
  • Leon Bottou
    Leon Bottou
    2006-04-13

    Logged In: YES
    user_id=42774

    Done in developer CVS.
    Will appear in the next version.

    Two keywords are recognized:
    - ?bundled (to serve a bundled document for display)
    - ?download (to serve a bundled document for download)
    In addition it recognized ?bundle as being
    equivalent to ?download. This is to save
    you the pain of changing your website...