USR-DR404 user manual
Jinan USR IOT Technology Limited
21
1
HTPMODE
New and old, HTTP header setting mode switch(HTTPD
Client)
2
HTTPURL
Old setting/query HTTP server IP and port
3
HTTPTP
Old setting/query HTTP requesting type
4
HTTPPH
Old setting/query HTTP protocol header path
5
HTTPCN
Old setting/query HTTP protocol header Connection
6
HTTPUA
Old setting/query HTTP protocol header User-Agent
7
HTPSV
New setting/query server address and IP(HTTPD Client)
8
HTPTP
New setting/query requesting way(HTTPD Client)
9
HTPURL
New setting/query requesting path(HTTPD Client)
10
HTPHEAD
New setting/query HTTP header(HTTPD Client)
11
HTTPSCEN
Setting/query HTTPD Client connection mode(long/short)
12
HTTPSCT
Setting/query
HTTPD
Client
short
connection
timeout(3-65535s)
Form 5 Related AT Command
If the data sent is 1234, then you will receive the following data on port 80 of test.usr.cn.
POST /2.php? HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:test.usr.cn:80
1234
If the HTTP type is GET, the data received on port 80 of test.usr.cn is
GET /1.php? data= 1234 HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Host:test.usr.cn:80
When the request method is POST or PUT, the data of the serial port will be added after the HTTP protocol header;
when the request method is GET, the data of the serial port will be added after the protocol header path.
Users can customize the content of the HTTP header in the new version of the definition method, and can add, delete,
and modify the content of each HTTP header according to their own needs(If the HTTP request type is POST / PUT,
USR-DR404 will automatically add Content-Length).The setting commands include "AT + HTPMODE, AT + HTPSV, AT + HTPTP,
AT + HTPURL, AT + HTPHEAD". For specific command setting procedures, please refer to the “AT command” chapter.
Similarly, there are corresponding settings pages in the web page.
Note: The above definition method is called the old definition method. In the new version of the setting method, a
new HTTP header definition method is added. If you use the AT command to set the HTTP header, please use "<< CRLF >>"
instead of carriage return and line feed. There is no need to consider carriage return when setting the built-in web page.
The web page settings are as follows:
(1) Set HTTPD request type: