Skip to content

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.

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy