Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasdiasjorge/lib-curl-implementation
Project created to access APIs with C language. Used in Arduinos, Rasp and others microcomputers.
https://github.com/lucasdiasjorge/lib-curl-implementation
api-client arduinos c cjson curl esp32 linux orangepi raspberry-pi sockets
Last synced: about 1 month ago
JSON representation
Project created to access APIs with C language. Used in Arduinos, Rasp and others microcomputers.
- Host: GitHub
- URL: https://github.com/lucasdiasjorge/lib-curl-implementation
- Owner: LucasDiasJorge
- Created: 2023-02-10T02:22:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T21:00:34.000Z (4 months ago)
- Last Synced: 2024-09-18T01:49:41.536Z (4 months ago)
- Topics: api-client, arduinos, c, cjson, curl, esp32, linux, orangepi, raspberry-pi, sockets
- Language: C
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using lib curl in C
### Done:
- [x] Print html of "https://example.com/"
- [x] Arduino application to make a get on a project of my own### Next step:
1. Making REST methods with curl (main)
- [x] Post
- [x] Get
- [x] Put
- [x] Delete
2. Making Post from txt file (feature/post-file)
- [x] Used on data stored in embedded Rasp pi memory
3. Refactor ifs to functions
- [x] Done ?
### Installation1. Linux only, for now
2. Clone the repo
```sh
git clone https://github.com/LucasDiasJorge/Curl-in-C.git
```
3. Install Lib Curl
```sh
sudo apt-get install libcurl4-openssl-dev
```
4. Compile the project
```sh
gcc -o main main.c -lcurl
```
5. Exec main
```sh
./main
```## Usage
_For more examples, please refer to the [Documentation](https://curl.se/docs/)_
_For more http tutorials and etc, please refer to the [Documentation](https://developer.mozilla.org/)_
_User Agent [Refer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent)_
_For post, used [Curl post](https://curl.se/libcurl/c/http-post.html)_