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

Request and Response, Request, Response, Parameter, Value

Page 47 highlights

Chapter 4 Status Notification Request and Response Request The format of request message is URL-encoded form data (application/x-www-form-urlencoded). Parameter ConnectionType ID ResponseFile Value Status The ID set with WebConfig (p. 40) Status Information POST /demo/Test_status.php HTTP/1.1 Host: 192.168.192.10 Content-Type: application/x-www-form-urlencoded Content-Length: xxx ConnectionType=SetStatus&ID=&Status=Status Information The status information configuration is as follows: Obtain the ASB status 4 Response The format of response message is XML(text/xml). To indicate that the server received the status notification, the Web server returns a response as follows: HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: 0 Digest Access Authentication Digest access authentication can be used for the status notification. See "Digest Access Authentication" (p.37) 47

  • 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

47
Chapter 4
Status Notification
4
Request and Response
Request
The format of request message is URL-encoded form data (application/x-www-form-urlencoded).
The status information configuration is as follows:
Response
The format of response message is XML(text/xml).
To indicate that the server received the status notification, the Web server returns a response as follows:
Digest Access Authentication
Digest access authentication can be used for the status notification.
See
"Digest Access Authentication" (p.37)
Parameter
Value
ConnectionType
Status
ID
The ID set with WebConfig (
p. 40
)
ResponseFile
Status Information
POST /demo/Test_status.php HTTP/1.1
Host: 192.168.192.10
Content-Type: application/x-www-form-urlencoded
Content-Length: xxx
ConnectionType=SetStatus&ID=&Status=Status Information
<?xml version="1.0" encoding="utf-8"?>
<statusmonitor Version="1.00">
<printerstatus devicename="kitchen_printer" asbstatus = "0x00000001"/>
<printerstatus devicename="kitchen_printer2" asbstatus = "0x00000001"/>
<printerstatus devicename="local_printer" asbstatus = "0x0F00003C"/>
</statusmonitor>
Obtain the ASB status
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 0