Appendix Acquiring the configuration script from the printer using an HTTP request A response for the json format is acquired using the GET method for the HTTP request. Request Table 3 Request Header Request header: Content-Type: text/plain; charset=utf-8 http://(printer IP address)/webconfig/beacon.cgi?Type=(one of the following Table 4 Types) Table 4 Types Response Table 5 Response Header Content-Type: application/json; charset=utf-8 Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, OPTIONS, HEADER Access-Control-Allow-Headers: Content-Type, Content-Length, Authorization X-Content-Type-Options: nosniff X-XSS-protection: 1; mode=block X-Frame-Options:
deny Content-Security-Policy: default-src 'none' WWW-Authenticate: Digest realm=" ", nonce="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", qop="auth" Table 6 Response 147 Type Description (none) If a Type is left out, the same operation is performed as when current is specified. current Specifies the currently enabled configuration script. volatile Specifies the configuration script stored in RAM. static Specifies the configuration script stored in ROM. default Specifies the default configuration script. status Acquires information for the Bluetooth adapter.
Function GET Parameter Results Response Acquires the configuration script currently enabled Type=current Or no Type is set Acquisition successful 200 OK Acquires the configuration script on the RAM Type=volatile Acquisition successful 200 OK Acquisition failed (No file) 404 Not Found Acquires the configuration script on the ROM Type=static Acquisition successful 200 OK Acquisition failed (No file) 404 Not Found Acquires the Default configuration script Type=default Acquisition successful 200 OK