Skip to content

Fully functionnal HTTP server written in C. Able to parse requests, and answer accordingly, handling any media, plus PHP scripts, for HTTP/1.0 and HTTP/1.1, and for the GET, HEAD, and POST methods.

Notifications You must be signed in to change notification settings

LittleBangTheory/HTTP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projet-HTTP

Authors

  • LittleBangTheory
  • Spectraal
  • Kaaldra

About the project

This is a fully functionnal HTTP server written in C. It is able to parse the requests, and answer accordingly, handling any media, plus PHP scripts, for HTTP/1.0 and HTTP/1.1, and for the GET, HEAD, and POST methods.

More informations and documentation can be found in the documents folder, including pdf and html doxygen output, and on the Wiki of this project.

Parser

PoC

simplegrammarparser/ contains a PoC of a parser for a simple grammar, written in C, that was used as a base for building a more complex parser. It contains it's own simple grammar and test files.

HTTP Parser

The parser in parser/ can parse any HTTP request following the grammar in parser/rfc/allrfc.abnf, and display it as a tree, or search for a specific fields and for its number of occurences.

HTTP Server

For more detailled instructions and informations, see server/

The server handles :

  • Reception of the requests
  • Syntax and semantic verification.
  • HTTP headers
  • URL normalization
  • Gestion de l'accès aux fichiers et type mime (basé sur l'extension) et le charset par défaut, gestion multi-sites
  • Access to files using their mime type (or their extension) and the default charset
  • Multi-sites management
  • fastCGI interface management to receive and send requests to the PHP motor

About

Fully functionnal HTTP server written in C. Able to parse requests, and answer accordingly, handling any media, plus PHP scripts, for HTTP/1.0 and HTTP/1.1, and for the GET, HEAD, and POST methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •