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 series.
TM Intelligent Printer
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"
If communication fails, it is attempted again after a specified interval.
Parameter
ConnectionType
ID
POST /demo/Test_print.php HTTP/1.1
Host: 192.168.192.10
Header
Content-Type: application/x-www-form-urlencoded
Content-Length: 29
ConnectionType=GetRequest&ID=
1 : HTTP Request (Print request)
2.2 : HTTP Response (Print request)
Value
GetRequest
The ID set with WebConfig
Chapter 3
Web Server
2.1 : Create XML from a
database or other system
(p.
26)
Request and Response
(p.
26).
37
3