HTTP client
FP Web-Server V2.810 EN
75
Chapter 11
HTTP client
11.1 HTTP client
The FP Web-Server is able to act as a HTTP client. Two http request
standard methods are supported: HTTP GET and HTTP POST.
HTTP GET:
The FP Web-Server sends a HTTP GET request to the HTTP server. The
HTTP server sends its response to the request to the FP Web-Server. If the
FP Web-Server receives a response, it will write the response to the PLC. If
no response is received, an error flag will be set.
Possible applications are for example:
Read files (e.g. logfiles) from the own expansion unit (using the FP
Web-Server's own IP address or 127.0.0.1) .
Read files (e.g. logfiles) from an external HTTP server.
Read PLC data from an external FP Web-Server.
Find out your external IP address (dynamical IP addresses) by sending
a GET request to e.g. http://my.ip.fi/ or http://ifconfig.me/ip.
Set PLC internal flag bits or PLC outputs by sending a GET request.