如何使用IPP(Internet打印协议)与HTTP打印文件在android系统? [英] How to use ipp(Internet Printing Protocol) with HTTP to print file in android?

查看:4311
本文介绍了如何使用IPP(Internet打印协议)与HTTP打印文件在android系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打印在Android application.For相同的文件,在谷歌搜索后,我发现,我将不得不使用IPP(Internet打印协议)与HTTP一些有用的信息。而我是新来的IPP,但我有一个HTTP工作。
因此,任何人可以帮助我一样吗?
任何人都可以给我一些有用的信息或链接?
在此先感谢?

I want to print file from android application.For the same , after searching on google,I found some useful information that i will have to use IPP (Internet Printing Protocol) with HTTP. And I am new to ipp but i have worked with HTTP. So can anybody help me for the same ? Can anybody give me some useful information OR links? Thanks in advance ?

推荐答案

您需要做HTTP PUT请求具有一些特殊功能,您必须:

You need to make an HTTP PUT request with some special features, you must:


  • 使用端口631,而不是80(除非明确指定当然)。

  • 改写网址在标题(即 IPP:// =>的http:// )。

  • 的协议号 IPP / 1.1

  • 您必须通过一个挑战的方法进行验证。

OTOH,用在身上的请求/响应格式是二进制的,所以你应该真的读的 RFC 。此外,它很简单,你需要的是工作和打​​印机的URI,然后你只需发送正确连接codeD数据。

OTOH, the request/response format used in the body is binary, so you should really really read the RFC. Besides that, it's quite simple, all you need is job and printer URIs, and then you just send properly encoded data.

这篇关于如何使用IPP(Internet打印协议)与HTTP打印文件在android系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆