Skip to content

C based single thread Socket that uses HTTP protocol allowing simple connections to an API. The client is capable of sending POST to API as JSON.

License

Notifications You must be signed in to change notification settings

Nasar165/httpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP CLIENT

Introduction

Single threaded socket capable of connecting to a API trough HTTP protocol. Suitable for embedded systems such as a small Raspberry PI project or a simple application.

Dependency

Key Highlights

  • GET and POST methods.
  • Convert Domain to IP.
  • Support URL.
  • Single Thread/Thread safe
  • Memory optimized.
  • Small Codebase.

Testing the Code before implementation

This section explains how to test the C code before running it on a real project. We expect that you possess some basic understanding of C and GCC running in a Linux environment.

1 Go to source directory and enter gcc main.c -o out/out
2 run the app by entering ./a.out GET google.com

Development environment

USE CASE

The code is designed to run on embedded systems such as an Raspberry PI connected to the internet trough WiFi or ethernet. It can also be used in Linux OS applications.

About

C based single thread Socket that uses HTTP protocol allowing simple connections to an API. The client is capable of sending POST to API as JSON.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published