⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc2565.txt

📁 中、英文RFC文档大全打包下载完全版 .
💻 TXT
📖 第 1 页 / 共 5 页
字号:
   Robert Kline - TrueSpectra       Don Wright - Lexmark   Dave Kuntz - Hewlett-Packard     Rick Yardumian - Xerox   Takami Kurono - Brother          Lloyd Young - Lexmark   Rich Landau - Digital            Peter Zehler - Xerox   Greg LeClair - Epson             Frank Zhao - Panasonic                                    Steve Zilles - AdobeHerriot, et al.               Experimental                     [Page 24]RFC 2565            IPP/1.0: Encoding and Transport           April 19999. Appendix A: Protocol Examples9.1 Print-Job Request   The following is an example of a Print-Job request with job-name,   copies, and sides specified. The "ipp-attribute-fidelity" attribute   is set to 'true' so that the print request will fail if the "copies"   or the "sides" attribute are not supported or their values are not   supported. Octets          Symbolic Value                Protocol field 0x0100          1.0                           version-number 0x0002          Print-Job                     operation-id 0x00000001      1                             request-id 0x01            start operation-attributes    operation-attributes-tag 0x47            charset type                  value-tag 0x0012                                        name-length attributes-     attributes-charset            name charset 0x0008                                        value-length us-ascii        US-ASCII                      value 0x48            natural-language type         value-tag 0x001B                                        name-length attributes-     attributes-natural-language   name natural- language 0x0005                                        value-length en-us           en-US                         value 0x45            uri type                      value-tag 0x000B                                        name-length printer-uri     printer-uri                   name 0x001A                                        value-length http://forest:  printer pinetree              value 631/pinetree 0x42            nameWithoutLanguage type      value-tag 0x0008                                        name-length job-name        job-name                      name 0x0006                                        value-length foobar          foobar                        value 0x22            boolean type                  value-tag 0x16                                          name-length ipp-attribute-  ipp-attribute-fidelity        name fidelity 0x01                                          value-length 0x01            true                          value 0x02            start job-attributes          job-attributes-tag 0x21            integer type                  value-tagHerriot, et al.               Experimental                     [Page 25]RFC 2565            IPP/1.0: Encoding and Transport           April 1999 0x0006                                        name-length copies          copies                        name 0x0004                                        value-length 0x00000014      20                            value 0x44            keyword type                  value-tag 0x0005                                        name-length sides           sides                         name 0x0013                                        value-length two-sided-      two-sided-long-edge           value long-edge 0x03            end-of-attributes             end-of-attributes-tag %!PS...         <PostScript>                  data9.2 Print-Job Response (successful)   Here is an example of a successful Print-Job response to the previous   Print-Job request.  The printer supported the "copies" and "sides"   attributes and their supplied values.  The status code returned is '   successful-ok'. Octets            Symbolic Value              Protocol field 0x0100            1.0                         version-number 0x0000            successful-ok               status-code 0x00000001        1                           request-id 0x01              start operation-attributes  operation-attributes-tag 0x47              charset type                value-tag 0x0012                                        name-length attributes-       attributes-charset          name charset 0x0008                                        value-length us-ascii          US-ASCII                    value 0x48              natural-language type       value-tag 0x001B                                        name-length attributes-       attributes-natural-         name natural-language  language 0x0005                                        value-length en-us             en-US                       value 0x41              textWithoutLanguage type    value-tag 0x000E                                        name-length status-message    status-message              name 0x000D                                        value-length successful-ok     successful-ok               value 0x02              start job-attributes        job-attributes-tag 0x21              integer                     value-tag 0x0006                                        name-lengthHerriot, et al.               Experimental                     [Page 26]RFC 2565            IPP/1.0: Encoding and Transport           April 1999 Octets            Symbolic Value              Protocol field job-id            job-id                      name 0x0004                                        value-length 147               147                         value 0x45              uri type                    value-tag 0x0007                                        name-length job-uri           job-uri                     name 0x001E                                        value-length http://forest:63  job 123 on pinetree         value 1/pinetree/123 0x42              nameWithoutLanguage type    value-tag 0x0009                                        name-length job-state         job-state                   name 0x0004                                        value-length 0x0003            pending                     value 0x03              end-of-attributes           end-of-attributes-tag9.3 Print-Job Response (failure)   Here is an example of an unsuccessful Print-Job response to the   previous Print-Job request. It fails because, in this case, the   printer does not support the "sides" attribute and because the value   '20' for the "copies" attribute is not supported. Therefore, no job   is created, and neither a "job-id" nor a "job-uri" operation   attribute is returned. The error code returned is 'client-error-   attributes-or-values-not-supported' (0x040B). Octets        Symbolic Value                Protocol field 0x0100        1.0                           version-number 0x040B        client-error-attributes-or-   status-code               values-not-supported 0x00000001    1                             request-id 0x01          start operation-attributes    operation-attribute tag 0x47          charset type                  value-tag 0x0012                                      name-length attributes-   attributes-charset            name charset 0x0008                                      value-length us-ascii      US-ASCII                      value 0x48          natural-language type         value-tag 0x001B                                      name-length attributes-   attributes-natural-language   name natural- language 0x0005                                      value-lengthHerriot, et al.               Experimental                     [Page 27]RFC 2565            IPP/1.0: Encoding and Transport           April 1999 Octets            Symbolic Value              Protocol field en-us         en-US                         value 0x41          textWithoutLanguage type      value-tag 0x000E                                      name-length status-       status-message                name message 0x002F                                      value-length client-error- client-error-attributes-or-   value attributes-   values-not-supported or-values- not-supported 0x05          start unsupported-attributes  unsupported-attributes tag 0x21          integer type                  value-tag 0x0006                                      name-length copies        copies                        name 0x0004                                      value-length 0x00000014    20                            value 0x10          unsupported  (type)           value-tag 0x0005                                      name-length sides         sides                         name 0x0000                                      value-length 0x03          end-of-attributes             end-of-attributes-tag9.4 Print-Job Response (success with attributes ignored)   Here is an example of a successful Print-Job response to a Print-Job   request like the previous Print-Job request, except that the value of   'ipp-attribute-fidelity' is false. The print request succeeds, even   though, in this case, the printer supports neither the "sides"   attribute nor the value '20' for the "copies" attribute. Therefore, a   job is created, and both a "job-id" and a "job-uri" operation   attribute are returned. The unsupported attributes are also returned   in an Unsupported Attributes Group. The error code returned is '   successful-ok-ignored-or-substituted-attributes' (0x0001). Octets            Symbolic Value              Protocol field 0x0100            1.0                         version-number 0x0001            successful-ok-ignored-or-   status-code                   substituted-attributes 0x00000001        1                           request-id 0x01              start operation-attributes  operation-attributes-tag 0x47              charset type                value-tag 0x0012                                        name-length attributes-       attributes-charset          name charset 0x0008                                        value-lengthHerriot, et al.               Experimental                     [Page 28]RFC 2565            IPP/1.0: Encoding and Transport           April 1999 Octets            Symbolic Value              Protocol field us-ascii          US-ASCII                    value 0x48              natural-language type       value-tag 0x001B                                        name-length attributes-       attributes-natural-         name natural-language  language 0x0005                                        value-length en-us             en-US                       value 0x41              textWithoutLanguage type    value-tag 0x000E                                        name-length status-message    status-message              name 0x002F                                        value-length successful-ok-    successful-ok-ignored-or-   value ignored-or-       substituted-attributes substituted- attributes 0x05              start unsupported-          unsupported-attributes                   attributes                  tag 0x21              integer type                value-tag 0x0006                                        name-length copies            copies                      name 0x0004                                        value-length 0x00000014        20                          value 0x10              unsupported  (type)         value-tag 0x0005                                        name-length sides             sides                       name 0x0000                                        value-length 0x02              start job-attributes        job-attributes-tag 0x21              integer                     value-tag 0x0006                                        name-length job-id            job-id                      name 0x0004                                        value-length 147               147                         value 0x45              uri type                    value-tag 0x0007                                        name-length job-uri           job-uri                     name 0x001E                                        value-length http://forest:63  job 123 on pinetree         value 1/pinetree/123 0x42              nameWithoutLanguage type    value-tag 0x0009                                        name-length job-state         job-state                   name 0x0004                                        value-length 0x0003            pending                     value 0x03              end-of-attributes           end-of-attributes-tagHerriot, et al.               Experimental                     [Page 29]RFC 2565            IPP/1.0: Encoding and Transport           April 19999.5 Print-URI Request   The following is an example of Print-URI request with copies and   job-name parameters: Octets         Symbolic Value               Protocol field 0x0100         1.0                          version-number Octets         Symbolic Value               Protocol field 0x0003         Print-URI                    operation-id 0x00000001     1                            request-id 0x01           start operation-attributes   operation-attributes-tag 0x47   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -