Epson TM-T20II-i Server Direct Print Users Manual for TM-i firmware ver.4.1 - Page 27

Request and Response, Request (Print Request

Page 27 highlights

Chapter 3 Request and Response 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 Web Server 1 : HTTP Request (Print request) 2.1 : Create XML from a database or other system 3 2.2 : HTTP Response (Print request) 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. 21). If communication fails, it is attempted again after a specified interval. Parameter ConnectionType ID Value GetRequest The ID set with WebConfig (p. 21) Header 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= 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48

27
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. 21
).
If communication fails, it is attempted again after a specified interval.
Parameter
Value
ConnectionType
GetRequest
ID
The ID set with WebConfig (
p. 21
)
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