LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 236 of 273
#HTTPSND – send HTTP POST or PUT request
Note: the HTTP request header sent with #HTTPSND always contains the
“Connection: close” line, and it can not 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
<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#HTTPSND=?
Test command
returns the supported range of parameters
<prof_id>, <command>
and
<data_len>
and the maximum length of
<resource>, <post_param>
and
<extra_header_line>
parameters
in the format:
# HTTPSND: (list of supported <prof_id>s),(list of supported <command>s),
<r_length>, (list of supported <data_len>s),<p_length>,<m_length>
where:
<r_length>
- integer type value indicating the maximum length of parameter
<resource>
.
<p_length>
- integer type value indicating the maximum length of parameter
<post_param>
.
<m_length>
- integer type value indicating the maximum length of parameter
<extra_header_line>
Example
Post 100 byte without “Content-type” header
AT#HTTPSND=0,0,”/”,100
>>>
Post 100 byte with “application/x-www-form-urlencoded”
AT#HTTPSND=0,0,”/”,100,0
>>>
Post 100 byte with “multipart/form-data” and extension
AT#HTTPSND=0,0,”/”,100,”3:boundary=----FormBoundary”
>>>
Содержание LE910-SKG
Страница 1: ......