Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use ipp(Internet Printing Protocol) with HTTP to print file in android?

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 ?

like image 896
Ramesh Solanki Avatar asked Dec 20 '11 04:12

Ramesh Solanki


People also ask

How do I connect to an IPP printer?

Select [Connect to a printer on the Internet or on a home or office network]. Enter [URL]. Enter "http://<the IP address or name of the printer>/ipp." When you want to perform IPPS printing using SSL encrypted communication, enter "https://<the IP address or name of the printer>/ipp."

How do I enable IPP printing?

In the administrator mode, select [Network] - [IPP Setting], then configure the following settings. Select [ON] to use the IPP printing function. [ON] is specified by default. Select [ON] to use the IPP printing function.

What port does IPP printing use?

IPP uses TCP with port 631 as its well-known port.

How does IPP printing work?

IPP printing uses the Internet Printing Protocol (IPP) and prints information via the network. IPP that is extended HTTP is used to forward printing data, enabling you to print data on a printer on a distance location via the Internet.


1 Answers

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

  • use the port 631 instead of 80 (unless it's explicitly specified of course).
  • rewrite the url in the header (i.e. ipp:// => http://).
  • protocol ID is IPP/1.1.
  • you must authenticate via a challenge method.

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.

like image 69
Ismael Luceno Avatar answered Oct 25 '22 23:10

Ismael Luceno