CS-E3100 User Manual
OneFex
12
Figure 14 UDP Server
2.3.3
HTTP Client
The HTTP protocol version supported by the device is 1.0 and 1.1, and it
supports GET/POST request. Data received from serial is assemble as HTTP
message and sent to the HTTP server, and then accepts the response from
HTTP server. In addition, supports filtering out HTTP headers.
User can preset the request method (GET/POST) or use the automatic
mode. The device will select a GET or POST request according to data when
works in automatic mode.
HTTP://
in URI is not necessary. Both of the following uri are correct:
⚫
http://www.rt-thread.com/service/rt-thread.txt
⚫
www.rt-thread.com/service/rt-thread.txt
2.3.3.1
Request of GET
If you want to request a web page via URI, you need to use the Request of
GET mode.
URI consists of "Server address", "Server port" and "URL". Note that"URL"
in web is invalid and it is the data received from the serial.
Example: Get
www.rt-thread.com/service/rt-thread.txt
the introduction of RT-Thread. The process is as follows:
1.
Select "HTTP Client" protocol,
2.
Set server address(www.rt-thread.com) and port(80), select "GET"
request.
3.
Save and Reboot
4.
Send URL (/service/rt-thread.txt) over serial and it will receive a
message from the HTTP server