View Single Post
Old 08-24-2011, 03:16 AM   #7
lantolin
Junior Member
lantolin began at the beginning.
 
Posts: 3
Karma: 28
Join Date: Apr 2011
Device: Kindle 3G Wifi
Works like a charm!!!

Thanks for the tip.

I went one step further because I have an apache and I would like to serve my own books.

I tried just serving an .epub but the Kobo Touch browser (FW 1.9.9) displays a garbled page and hangs, no way to "save" the content.

So I took a look to how the Calibre server does it (HTTP headers) and I found this:

Code:
HTTP/1.1 200 OK
Content-Length: 130676
Content-Disposition: attachment; filename="CalibreStartGuide.epub"
Server: calibre/0.8.15
Last-Modified: Sun, 21 Aug 2011 09:32:41 GMT
Date: Wed, 24 Aug 2011 06:57:51 GMT
Content-Type: application/epub+zip
So, I configured epub mime type at apache's mods-enables/mime.conf like this

Code:
AddType application/epub+zip .epub
And ready, apache is serving now my epubs perfectly and Kobo's browser downloads them.

Thanks,

/Luis
lantolin is offline   Reply With Quote