简体   繁体   English

Internet打印协议(IPP)获取服务器版本请求?

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

I am writing a python IPP( Internet Printing Protocol) server. 我正在编写一个python IPP(Internet打印协议)服务器。

If the client send a get-server-version request, how does the server response? 如果客户端发送get-server-version请求,服务器如何响应?

What is the format? 格式是什么? Any document describes this? 有文件描述吗?

thanks. 谢谢。

There is no get-server-version request operation defined in ipp. 在ipp中没有定义get-server-version请求操作。 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客户端通常使用GET_PRINTER_ATTRIBUTES (0x000B)操作检查打印机,并获得如下GET_PRINTER_ATTRIBUTES (0x000B)编码的响应(属性已解码):

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. 作为参考起点,请参阅RFC 2911第3.2.5.2节“获取打印机属性”响应,第3组:打印机对象属性和第4.3节“打印机描述属性”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python-在公共Internet协议上制作套接字服务器 - Python - Make socket server on Public Internet Protocol Python HTTPS/SSL 错误:1407742E:SSL 例程:SSL23_GET_SERVER_HELLO:tlsv1 警报协议版本 - Python HTTPS/SSL error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 打印协议(带字典的列表) - Printing a protocol(list with dicts) 如何停止pyautogui打印<class 'Xlib.protocol.request.QueryExtension'> - How can I stop pyautogui from printing <class 'Xlib.protocol.request.QueryExtension'> 使用GAE Protocol RPC服务方法获取请求标头 - Get request headers using GAE Protocol RPC service method 打印到远程 IPP/CUPS 服务器或打印机的最简单方法(在 python 中)是什么? - What is the simplest way (in python) to print to a remote IPP/CUPS server or printer? Python SSLError:客户端错误(EOF发生违反协议),服务器端错误(SSL3_GET_RECORD:错误的版本号) - Python SSLError: Client-side-error(EOF occurred in violation of protocol), Server-side-error(SSL3_GET_RECORD:wrong version number) Python-将请求发送到Internet协议 - Python - Sending requests to an Internet Protocol 使用 Flask 将使用 POST 请求接收到的数据打印到本地服务器 - Printing Data Received using POST Request to local server using Flask GAE开发服务器忽略请求模块版本? - GAE dev server ignoring request module version?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM