With the HttpHandling library, you can implement the HTTP client functionality in your controller application. The library supports the HTTP version 1.1.
The HTTP (Hypertext Transfer Protocol) function is a request-response protocol in the client/server computing model. For the connection between a client and a server, the TCP (Transport Layer Protocol) is used. The client submits an HTTP request message to the server. The server returns a response message to the client. The response contains status information about the request and may also contain requested content in its message text.
This library supports HTTP via a secured connection using TLS (Transport Layer Security), also known as HTTPS. Whether a connection using TLS is supported depends on the controller where the FB_HttpClient is used. Refer to the specific manual of your controller to verify if TCP communication using TLS is supported.
With V1.3.1.0 and later versions of this library, the OAuth (Open Authorization) protocol version 2.0 is supported which allows access to protected resources after authorization of the client at the authorization server.
The following table indicates the characteristics of the library:
Characteristic |
Value |
---|---|
Library title |
HttpHandling |
Company |
Schneider Electric |
Category |
|
Component |
|
Default namespace |
|
Language model attribute |
|
Forward compatible library |
Yes (FCL) |
In EcoStruxure Machine Expert, the function template HttpClient is provided as part in the function template library Communication Functions. This function template supports you on implementing an HTTP client in your application.
For more information about this function template and the general use of function templates, refer to the Function Template Library Guide.
Only IPv4 IP addresses are supported for the communication functions provided with this library.
The library described in this document internally uses the TcpUdpCommunication library.
The TcpUdpCommunication (Schneider Electric) and the CAA Net Base Services library (CAA Technical Workgroup) use the same system resources on the controller. The simultaneous use of both libraries in the same application may lead to disturbances during the operation of the controller.
WARNING | |
---|---|
WARNING | |
---|---|
For more information on organizational measures and rules covering access to infrastructures, refer to ISO/IEC 27000 series, Common Criteria for Information Technology Security Evaluation, ISO/IEC 15408, IEC 62351, ISA/IEC 62443, NIST Cybersecurity Framework, Information Security Forum - Standard of Good Practice for Information Security and refer to Cybersecurity Guidelines for EcoStruxure Machine Expert, Modicon and PacDrive Controllers and Associated Equipment.