View Single Post
Old 01-21-2019, 10:12 AM   #4
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
Originally Posted by ilovejedd View Post
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.
Frenzie is offline   Reply With Quote