Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W03 _User Manual _EN_V1.1
Copyright ©2012–2022, Chengdu Ebyte Electronic Technology Co., Ltd
.
31
6.2.2 HTTP Client
1
、
Log in to the web page, select the job role as Station in the mode setting menu, select HTTP Client as the service
mode, and save the settings.
2
、
Log in to the web page again, and fill in the HTTP server address in the parameter setting menu.
3
、
Fill in the HTTP server port number.
4
、
The request method can choose post or get.
5
、
Select all output as the output mode, and all the content replied by the server will be output through the serial port. If
you select valid output, the serial port will only output valid data.
6
、
Enter the header URL path.
7
、
User-defined input protocol header, multiple items must be added directly\r\nThe last one should not be added.
If the user passes parameters through GET, the following explains how to use GET in detail. as follows:
GET /request/login.do?name=test&userpwd=123456 HTTP/1.1
Host: 192.168.4.10:8080
Among them, /request/login.do? is the content set in the URL of the header path (note that ? should be added after
the URL), and name=test&userpwd=123456 is the data received by the serial port of the module.
192.168.4.10:8080 is the HTTP server address and port.
Custom protocol header: the default is Connection: keep-alive, the user can modify it, if more than one is needed,
add \r\n between the commands, and not add the last one.
If the user passes parameters through POST, the following describes how to use POST in detail. as follows:
POST /request/login.do HTTP/1.1
Host: 192.168.4.10:8080
(This is a blank line, which cannot be deleted, and the contents of the parentheses in the final release must be
deleted, and the blank line is reserved)
username=test&userpwd=123456
Among them, /request/login.do is the content set in the header path URL, and name=test&userpwd=123456 is the
data received by the module serial port. 192.168.4.10:8080 is the HTTP server address and port.
Custom protocol header: the default is Connection: keep-alive, the user can modify it, if more than one is needed,
add \r\n between the commands, and not add the last one.