Quote:
Originally Posted by ilovejedd
Again, it's only KOReader where the password-protected Calibre content server didn't work.
|
Not entirely:
Code:
curl --user bla:bla -I http://192.168.1.190:8090/opds/navcatalog/4e7075626c6973686572?library_id=Calibre_Library
HTTP/1.1 400 Bad Request
Content-Length: 33
Content-Type: text/plain; charset=UTF-8
Date: Mon, 21 Jan 2019 14:19:29 GMT
It does work with
Code:
curl --digest --user bla:bla
.
So the issue is that
digest authentication is either not supported or not implemented. Unfortunately it looks like it's not supported, see
here.
As a workaround you can set the calibre server authentication type to basic under advanced "sharing over the net" settings, which should be fine if you're just using it on your LAN. (And also fine if you're using it encrypted with TLS.)
It's not as simple as just adding an md5 hash. There's also a special dual requests protocol.
It's not all bad news though: a quick search shows
https://github.com/catwell/lua-http-digest which might make for a reasonably swift implementation if someone's willing to put in the leg work.