We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2024-07-09
Package Version: 2.0.0.11
mikroSDK Library: 2.0.0.0
Category: Ethernet
Downloaded: 24 times
Not followed.
License: MIT license
The application demonstrates CycloneTCP HTTP client functionality.
Do you want to subscribe in order to receive notifications regarding "HTTP Client" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "HTTP Client" changes.
Do you want to report abuse regarding "HTTP Client".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
5754_http_client.zip [14.25KB] | GCC for ARM |
|
In this demo, the HTTP client running on MCU will connect to the HTTP server "www.httpbin.org", port number 80. Client will then send POST request to HTTP server whith header containing, Host: "www.httpbin.org", User-Agent: "Mozilla/5.0" ,Content-Type: "text/plain", and Transfer-Encoding: "chunked", and parameters/aruments, param1 and param2, having respective values of "value1" and "value2". Body of the message is plain text "Hello World!". Response from the HTTP server will be read, echoing back sent data in json format, and will be written over UART/Application output.
We provide demo code for testing HTTP client functionality. For example to work, proper clock setup is needed. To create a setup with the adequate clock scheme, follow these steps: