User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
22HTTP
Page 264 of 401
Parameter Type Description
<param_val1> Number /
String
Type and supported content depend on the related <op_code> parameter; details are
given above.
22.1.4Notes
HTTP server IP address and HTTP server name are mutually exclusive. If the HTTP server IP address is
specified by the user, then the value for the HTTP server name is reset, or vice versa.
SARA-R4 / SARA-N4
Set the secure option (<op_code>=6) before configuring the custom HTTP header with <op_code>=9 to
ensure the proper default port number is used in the header.
SARA-R404M / SARA-R410M-01B
<op_code>=6 (HTTP Secure option), 9 (HTTP add custom request headers) are not supported.
22.2HTTP advanced control+UHTTPAC
+UHTTPAC
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
22.2.1Description
Configures, reads or resets (to the factory-programmed values) the HTTP application profile advanced
parameters.
The configured HTTP profile advanced parameters are not saved in the non volatile memory.
22.2.2Syntax
Type Syntax Response Example
Set AT+UHTTPAC=<profile_id>,
<param_tag>,<key>,<value>
OK AT+UHTTPAC=0,0,0,"UBLX_
SESSION_COOKIE_0"
OK
Read AT+UHTTPAC=<profile_id>,
<param_tag>,<key>
+UHTTPAC: <profile_id>,<param_
tag>,<key>,<value>
OK
AT+UHTTPAC=0,0,0
+UHTTP: 0,0,0,"UBLX_SESSION_
COOKIE_0"
OK
Test AT+UHTTPAC=? +UHTTPAC: (list of supported
<profile_id>s),(list of supported
<param_tag>s),(list of supported
<key>s)
OK
+UHTTPAC: (0-3),(0),(0-3)
OK
22.2.3Defined values
Parameter Type Description
<profile_id> Number HTTP profile identifier, in range 0-3
<param_tag> Number
0: HTTP request COOKIES; manage request COOKIES sent to the HTTP server.
o <key>: index of the cookie (number); range 0-3. Identifies the cookie to be read
if <value> is omitted or configured if <value> is a valid string.
o <value>: value of the cookie (string); the maximum length is 256 characters. The
cookie values respect the following rules:
- Empty string (""): the cookie will be cleared and will not be present in the
request;
- Simple one-value cookie: the cookie will be set and sent in the request;
- Complex multi-value cookie: the cookies will be set and sent in the request.
The multiple cookies must be separated by a left-attached semicolon(";")
and a space(" ");