AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page209of233
#HTTPQRY – send HTTP GET, HEAD or DELETE request
AT#HTTPQRY=
<prof_id>,<command
>,<resource>[,<extra_
header_line>]
Execution command performs a GET, HEAD or DELETE request to HTTP server.
Parameters:
<prof_id>
- Numeric parameter indicating the profile identifier - Range: 0-2
<command> - Numeric parameter indicating the command requested to HTTP
server:
0 – GET
1 – HEAD
2 – DELETE
<resource> - String parameter indicating the HTTP resource (uri), object of the
request.
<extra_header_line> - String parameter indicating optional HTTP header line.
If sending ends successfully, the response is OK; otherwise an error code is
reported.
Note: the HTTP request header sent with #HTTPQRY always contains the
“Connection: close” line, and it cannot be removed.
When the HTTP server answer is received, then the following URC is put on the
serial port:
#HTTPRING: <prof_id>,<http_status_code>,<content_type>,<data_size>
Where:
<prof_id>
is defined as above.
<http_status_code> is the numeric status code, as received from the server (see
RFC 2616).
<content_type> is a string reporting the “Content-Type” header line, as
received from the server (see RFC 2616).
<data_size> is the byte amount of data received from the server. If the server
doesn’t report the "Content-Length:" header line, the parameter value is 0.
Note: if there are no data from server or the server doesn’t answer within the time
interval specified in <timeout> parameter of #HTTPCFG command, then the URC
#HTTPRING <http_status_code> parameter has value 0.
AT#HTTPQRY=?
Test command reports the supported range of values for the parameters <prof_id>
and <command> and the maximum length of <resource> parameter in the format:
#HTTPQRY: (list of supported <prof_id>s),(list of supported
<command>s),<r_length>,<m_length>
where: