Internet Printing Protocol (IPP) get-server-version request?

742 Views Asked by At

I am writing a python IPP( Internet Printing Protocol) server.

If the client send a get-server-version request, how does the server response?

What is the format? Any document describes this?

thanks.

1

There are 1 best solutions below

0
On

There is no get-server-version request operation defined in ipp. Ipp clients usually check the printer using the operation GET_PRINTER_ATTRIBUTES (0x000B) and get an ipp encoded response like this (attributes already decoded):

ipp-versions-supported = [1.0, 1.1, 2.0]
printer-state = 3 {idle}
printer-state-reasons = toner-low-warning
printer-make-and-model = HP LaserJet 100 colorMFP M175nw
printer-info = HP LaserJet 100 colorMFP M175nw
printer-more-info = http://www.hp.com
...

For a reference starting point look into RFC 2911 Section 3.2.5.2 Get-Printer-Attributes Response, Group 3: Printer Object Attributes and Section 4.3 Printer Description Attributes.