harwey/cups4j

HTTPS protocol is not supported

Opened this issue · 2 comments

My cups server is available by https://some-url.com. It works correctly when I use it with lp command:

lp -h some-url.com:443 -d "My printer" /file.pdf

But it throws IOException with message "HTTP error! Status code: HTTP/1.1 400 Bad Request" when I do that:

new CupsClient("some-url.com", 443).getPrinters();

The cups servet itself is configured with properties ServerAlias * so there shouldn't be a problem.

I use version 0.7.9.

ipp-client is an alternative library (for java and kotlin) which supports ipps including basic (username/password) http authentication.

Hi all,
is it possibile to have an updated version of this in order to work with https protocol ?

Thank you