Skip to content
/ trail Public

A small, minimal HTTP library written in C.

Notifications You must be signed in to change notification settings

0x1CA3/trail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


trail - A small, minimal HTTP library written in C.

trail is a small, minimal, and easy-to-use HTTP library written in C that supports GET and POST requests.

Version

Features

Features
Sending GET requests
Sending POST requests

Information

  • How to use functions:
    • Sending GET request requests_get(int port, char *website, char *directory); Parameters: (port, website, directory)
    • Sending POST request requests_post(int port, char *website, char *directory, char *post_data); Parameters: (port, website, directory, data)

Example

#include <stdio.h>
#include <stdlib.h>
#include "../includes/trail/trail.h"


/*
    *    example/main.c
    *    Date: 12/6/21
    *    Author: 0x1CA3
*/


int main(void) {
    requests_get(80, "example.com", NULL);
    return EXIT_SUCCESS;
}

Setup & Installation

Steps for compiling & running:
  install.sh
  gcc -o <binary> <source_file> trail.so

Credits

https://github.com/0x1CA3

Contributions 🎉

All contributions are accepted, simply open an Issue / Pull request.