HttpExampleClient

This example demonstrates how to use the network stack to perform an HTTP client request from XDK. The example connects to the server www.postman-echo.com.

Programming

It establishes a connection to the server and alternating sends a GET and POST request to the configured server, every 10 seconds.

Update WLAN section in AppController.h with valid WiFi credentials, to perform a network request by the client. 

Output

Image

Additionally, it is also possible to use HTTPS instead of HTTP to send the requests, for which the HTTP_SECURE_ENABLE macro has to be set to 1 and SNTP section in AppController.h also needs to be updated.

For more detailed insights, please refer XDK_Guide_HTTP.pdf

Image