harwey / cups4j

Cups4j Java printing library for CUPS/IPP
http://cups4j.org
GNU Lesser General Public License v3.0
130 stars 64 forks source link

HTTPS protocol is not supported #76

Open Zhenyria opened 9 months ago

Zhenyria commented 9 months ago

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.

gmuth commented 7 months ago

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

FabFisk commented 5 months ago

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

Thank you