41
Chapter 3 Request and Response
3
Request and Response
This chapter describes requests from the TM intelligent printer and responses from the Web server.
User's application can start printing by returning a response containing print data to a HTTP POST request
(print request) from the printer.
It can also check if printing is properly finished by analyzing a HTTP POST request (print request) from the
printer.
Request (Print Request)
This section describes the request (print request) from the TM-i.
TM intelligent printer periodically sends a HTTP POST request (print request) shown below.
The format of request message is URL-encoded form data (application/x-www-form-urlencoded).
Set the sending destination and sending interval according to "Server Direct Print Settings" (p. 27).
Parameter Value
ConnectionType GetRequest
ID The ID set with WebConfig (p. 27)
1 : HTTP Request (Print request)
2.2 : HTTP Response (Print request)
2.1 : Create XML from a
database or other system
TM Intelligent Printer
Web Server
POST /demo/Test_print.php HTTP/1.1
Host: 192.168.192.10
Content-Type: application/x-www-form-urlencoded
Content-Length: 29
ConnectionType=GetRequest&ID=
Header