Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2015, 12:08 PM   #1126
gummihuhn
Member
gummihuhn began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2015
Device: kobo glo
Quote:
Originally Posted by mariosipad View Post
Great that you found a workaround!

I have not (yet) installed KoReader on my (new) Kobo Glo HD. So I cannot confirm the KoReader side of the problem.

All I can say is:
1 - OPDS from iPad (with several different OPDS clients) is no problem with Apache
2 - The COPS demo runs (as far as I know) on NGNIX. (So no Apache problem here)
3 - using the default Kobo browser I can download from my Apache COPS server.

I would say it is a KoReader problem.
Yes, my experience is consistent with all three of your points above. I agree it is more likely a koreader issue. I'll open a new issue on github when I get a chance tonight or tomorrow.
gummihuhn is offline   Reply With Quote
Old 08-17-2015, 02:10 PM   #1127
gummihuhn
Member
gummihuhn began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2015
Device: kobo glo
Quote:
Originally Posted by gummihuhn View Post
I've had a breakthrough and found a workaround for this issue.
I spoke too soon. The downloaded file is not as expected. Details at github.

Quote:
Originally Posted by gummihuhn View Post
I will open a new issue on github
You can follow this issue here: https://github.com/koreader/koreader/issues/1593
gummihuhn is offline   Reply With Quote
Old 08-19-2015, 06:59 AM   #1128
onetoomany
Junior Member
onetoomany began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2012
Device: Kobo Touch
I've just managed to get COPS working with IIS and my Kobo.
Works out of the box with my iPad, but the Kobo required URL rewriting.

Steps taken:
1. Enabled URL rewriting in config_local.php

2. Enabled double escaping on the IIS:
CMD as administrator:
CD c:\Windows\System32\inetsrv
appcmd set config "MySiteName/ebooks" -section:system.webServer/security/requestFiltering -allowDoubleEscaping:true
(where MySiteName is the name of the site in IIS, and ebooks is the name of my virtual directory where COPS sits)
3. Installed URL Rewrite 2.04. Configured URL Rewrite:
Left click on my eBooks virtual directory, right click on URL Rewrite and select Open Feature, then Add Rule.
Name: COPS rewrite for eBooks
Requested URL: Matches the pattern
Pattern: download/(.*)/.*\.(.*)$
Action: Rewrite
Rewrite URL: fetch.php?data={R:1}&type={R:2}
Append query string: Tick
Stop Processing of subsequent rules: Tick
Apply
Go back to the list of rules, and select it. Move it up so it is above the default Short URLs rule (you will be warned that rules won't be inherited anymore but that's fine)
5. Restart IIS

6. Test!
If it isn't working, then you will need to enable failed request tracing to see what the cause is. I found this article very useful to see where I had gone wrong.
http://www.iis.net/learn/extensions/...-rewrite-rules

Regards,

Richard.
onetoomany is offline   Reply With Quote
Reply

Tags
calibre opds, kobo aura, synology

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 4 12-15-2012 01:50 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre OPDS server with windows apps? nickdma Related Tools 9 02-02-2011 03:09 PM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 09:57 AM


All times are GMT -4. The time now is 03:25 AM.


MobileRead.com is a privately owned, operated and funded community.