User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
22HTTP
Page 265 of 401
Parameter Type Description
<key> Number/
String
Content depends on the related <param_tag> (see above).
<value> Number/
String
Content depends on the related <param_tag> (see above).
22.2.4Examples and use cases
In this section some +UHTTPAC AT command examples and use cases are listed.
Command Response Description
Example 1
AT+UHTTPAC=0,0,0,"" OK Clear the HTTP request cookie at index 0.
Example 2
AT+UHTTPAC=0,0,0,"SIMPLE_COOKIE" OK Set a simple HTTP request cookie at index 0.
Example 3
AT+UHTTPAC=0,0,0,"COMPLEX_COOKIE; COMPLEX_
COOKIE"
OK Overwrite the HTTP request cookie at index
0 with a complex cookie.
22.3HTTP command +UHTTPC
+UHTTPC
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
22.3.1Description
Triggers the HTTP command specified with <http_command> parameter, using the HTTP application profile
parameters (previously set up by +UHTTP AT command), specified with <profile_id>. The response indicates
if sending the command request to HTTP process was successful or not. The final result of HTTP command
will be returned to the user via the +UUHTTPCR URC.
The timing before the +UUHTTPCR URC is issued on the AT terminal also depends by the DNS resolution.
For further details about the estimated response time related to the DNS resolution, see the +UDNSRN
AT command.
22.3.2Syntax
Type Syntax Response Example
Generic syntax
Set AT+UHTTPC=<profile_id>,<http_
command>,<path>,<filename>[,
<param1>[,<param2>[,<param3>]]]
OK AT+UHTTPC=0,1,"/path/file.html",
"responseFilename"
OK
HEAD command
Set AT+UHTTPC=<profile_id>,0,<path>,
<filename>
OK AT+UHTTPC=0,0,"/path/file.html",
"responseFilename"
OK
GET command
Set AT+UHTTPC=<profile_id>,1,<path>,
<filename>
OK AT+UHTTPC=0,1,"/path/file.html",
"responseFilename"
OK
DELETE command
Set AT+UHTTPC=<profile_id>,2,<path>,
<filename>
OK AT+UHTTPC=0,2,"/path/file.html",
"responseFilename"
OK
PUT command
Set AT+UHTTPC=<profile_id>,3,<path>,
<filename>,<filesystem_name>[,
OK AT+UHTTPC=0,3,"/path/
file.html","responseFilename",
"filesystemName"