SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

21HTTP
Page 222 of 307
Parameter Type Description
- 2: application/octet-stream
- 3: multipart/form-data
- 4: application/json
- 5: application/xml
- 6: user defined with <param3>
o <param3>: used only when <param2>=6 (user defined Content-Type). The
maximum length is 64 characters
• 4: POST a file command; issue a POST request for sending a file to the HTTP
server.
o <param1>: filesystem filename (string). It is a mandatory string representing
the file system filename to be sent to the HTTP server within the POST request.
For file system file name and data size limits see File system limits.
o <param2>: HTTP Content-Type identifier (number); the range is 0-6. It is
a mandatory numeric parameter representing the HTTP Content-Type
identifier
- 0: application/x-www-form-urlencoded
- 1: text/plain
- 2: application/octet-stream
- 3: multipart/form-data
- 4: application/json
- 5: application/xml
- 6: user defined with <param3>
o <param3>: used only when <param2>=6 (user defined Content-Type). The
maximum length is 64 characters
• 5: POST data command; send a POST request to the HTTP server using the data
specified in <param1> parameter
o <param1>: data (string); the maximum length is 128 bytes. It is a mandatory
string representing the data to be sent to the HTTP server with the POST
request. The data must be formatted according to the Content-Type specified
in <param2> parameter.
o <param2>: HTTP Content-Type identifier (number); the range is 0-6. It is
a mandatory numeric parameter representing the HTTP Content-Type
identifier
- 0: application/x-www-form-urlencoded
- 1: text/plain
- 2: application/octet-stream
- 3: multipart/form-data
- 5: application/xml
- 6: user defined with <param3>
o <param3>: used when <param2> is set to 6 (user defined Content-Type). The
maximum length of the user defined content type is 64 characters.
• 100: GET FOTA update file; download FOTA update file
o <filename>: not allowed
o <param1>: not allowed
o <param2>: not allowed
o <param3>: not allowed
<path> String Path of HTTP server resource; the maximum length is 128 characters.
<filename> String Filename where the HTTP server response will be stored. If the file already exists,
it will be overwritten. If <filename> is an empty string (""), the default "http_last_
response_<profile_id>" filename will be used. For file system file name and data size
limits see File system limits.
<param1> String Content depends on the related <http_command> (see above).
<param2> Number Content depends on the related <http_command> (see above).
<param3> String Content depends on the related <http_command> (see above).
<http_result> Number
• 0: fail
• 1: success