Request Format; Response Format - Motorola CA50 Developer & User Manual

Table of Contents

Advertisement

10 - 4 CA50/UCA Client & Server Developer & User Guide

Request Format

The first line of the Request is the "Request Line". A "Request Line" consists of the request method (GET or
POST), the absolute URI being requested and the HTTP version. The "Request Line" is terminated by a CRLF.
Requests use the GET method when form data is not being submitted to the server. The GET or the POST method
is used to submit form data. The "method" element of the form selector decides whether or not the form data uses
the GET or POST method. The UCA client application browser uses the POST method when the "method" element
is not contained in the form selector. The "Request Line" is followed by several header fields. Header fields have
the format "name:value" pair. The following examples show the initial connection Request and a typical form
submission Request:
HTTP Command:GET
URI:
/Server/GetUser.apsx?sStoreNo=0002&sIPAddress=111.111.111.1111&sSerialNo=00000000&sMAC=11AA1314151
6&sDeviceType=Motorola UCA&sClientVersion= 1.01 HTTP/1.1<CF><LF>
User-Agent: UCAClient
Host:
111.111.111.111<CR><LF>
Connection: Keep-Alive<CR><LF><CR><LF>
NOTE The SerialNo name value pair is not fully implemented at this time and the SerialNo value is invalid.
HTTP Command:
URI:
HTTP Version
Accept:
Content-Type:
IPAddress:
SerialNo:
MAC:
PlatformInfo:
Host:
User-Agent:
Content-Length:
Connection:
Cache-Control:
Form Data:
NOTE The SerialNo name value pair is not fully implemented at this time and the SerialNo value is invalid.
Motorola's additional HTTP headers provided by the UCA client application browser are defined as follows.
IPAddress - IP address of the device.
SerialNo - As mentioned earlier, this name value pair is currently not fully implemented at this time and the
SerialNo is invalid.
MAC - The MAC address of the device
PlatformInfo - This is the platform information obtained from the Windows CE API SystemParametersInfo function.

Response Format

The Web server is responsible for the content of the Response header. The Response body must be a well-formed
HTML document for the UCA client application browser to parse.
POST
/Server/GetUser.apsx
HTTP/1.1<CR><LF>
*/*
application/x-www-form-uriencoded.charset=utf-8<CR><LF>
111.111.111.111<CR><LF>
12345678<CR><LF>
11AA13141516<CR><LF>
Motorola WinCE<CR><LF>
111.111.111.111<CR><LF>
htmlayout 3.1 ; UCAClient ; Windows CE<CR><LF>
84
Keep-Alive<CR:<LF>
no-cache<CR><LF>
username=10007310

Advertisement

Table of Contents
loading

Table of Contents