HTTP Client
Summary
HTTP client component supporting multiple request methods with configurable socket settings and request handling.
Description
The HTTP Client component provides comprehensive HTTP protocol implementation for making various types of HTTP requests. It supports GET, HEAD, DELETE, CONNECT, OPTIONS, TRACE, POST, and PUT methods with configurable socket settings, host configuration, and user-agent customization. The component handles HTTP/1.1 protocol version and can be configured for different request types and response handling. Typical applications include web service integration, API communication, data fetching, and IoT cloud connectivity.
Diagram:
Properties
- Configure Socket – Socket configuration (Default: True).
- Host – Target host address or URL.
- Name – Component identifier (Default: HTTPClient1).
- Requests – Configurable HTTP request methods:
- GET – HTTP GET request method
- HEAD – HTTP HEAD request method
- DELETE – HTTP DELETE request method
- CONNECT – HTTP CONNECT request method
- OPTIONS – HTTP OPTIONS request method
- TRACE – HTTP TRACE request method
- POST – HTTP POST request method
- PUT – HTTP PUT request method
- User-Agent – HTTP User-Agent header value.
- Version – HTTP protocol version (Default: HTTP/1.1).
Pins
Output Pins
- Out (http) - HTTP response output.
Note: When specific HTTP request methods are added to the Requests property, additional input and output pins will be created for each request type: - Input pins for each request method (GET, POST, PUT, etc.) for triggering requests and providing data - Output pins for each request method for receiving specific responses
Categories
- File:HTTP.png – HTTP protocol components.
- File:Network.png – Network communication components.
- – Internet connectivity components.
- File:Client.png – Client-side components.
- – Web service integration components.
- – API communication components.