BenoitDuffez / AndroidCupsPrint

Port of cups4j to Android. Allows wireless printing from any Android device to any CUPS-enabled print server or network printer.
https://benoitduffez.github.io/AndroidCupsPrint
GNU Lesser General Public License v3.0
230 stars 66 forks source link

No authenticated printing support #106

Closed shawnl closed 5 years ago

shawnl commented 6 years ago

Under the CUPS html settings I set Operation Policy: Authenticated, and this driver no longer works, with error message: "Couldn't handle job"

It would have to query for a user-name and password somehow.

BenoitDuffez commented 6 years ago

Do you have a pcap or a log that would help me understand what's going on?

shawnl commented 6 years ago
<HTML>
<HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
    <TITLE>Upgrade Required - CUPS v2.2.7</TITLE>
    <LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
<META HTTP-EQUIV="Refresh" CONTENT="3;URL=https://10.1.10.144:631/printers/Brother_HL-L2390DW">
</HEAD>
<BODY>
<H1>Upgrade Required</H1>
<P>You must access this page using the URL <A HREF="https://10.1.10.144:631/printers/Brother_HL-L2390DW">https://10.1.10.144:631/printers/Brother_HL-L2390DW</A>.</P>
</BODY>
</HTML>

from wireshark

BenoitDuffez commented 6 years ago

I see. You need to change the printer URL to use https. Or change the mDNS/whatever configuration to advertise the https URL over the http one.

BenoitDuffez commented 6 years ago

Did you manage to fix this?

BenoitDuffez commented 5 years ago

This doesn't provide enough information, HTTP basic auth is supported and the error seems to be about the wrong use of plain HTTP. Please reopen if you have more details to share.