
VW801, VW802, VW803, VW804 Serial-WiFi Modem User Manual
Vitalwell Electronics (Zhuhai) Pte. Ltd. www.vital-well.com
email:
39
n
Format:
u
Set Operation
AT+HTTPDT=<Data><CR>
+ok<CR><LF><CR><LF>
n
Parameters:
u
Data
:
HTTP request data, send AT+HTTPDT directly if no data to be sent.
A.2. HTTP Example
HTTP parameter settings are as follows
:
AT+HTTPURL=192.168.1.1,80 Set HTTP server address and port
AT+HTTPTP=POST Set HTTP request type
AT+HTTPPH=/abcd Set HTTP protocol header path
AT+HTTPCN= keep-alive Set HTTP Connection area
AT+HTTPUA= lwip1.3.2 Set HTTP User-Agent area
If send
“
AT+HTTPDT
”
, the data packet will be sent as the following instance including the two new
line:
POST /abcd HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:0
Host:192.168.0.127:8999
If send AT+HTTPDT=abcd, the data packet will be sent as the following instance:
POST /abcd HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.0.127:8999
abcd
The data received from HTTP server will be output to serial port and end with
“
+ok
”
.
If the module hasn
’
t received data from HTTP server for 5 second, it will cut the TCP link with HTTP
server.