Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 ?


### Installation

1. 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
```

(back to top)

## 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)_

(back to top)