Skip to content

lkwq007/simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-http-server

A simple http server that can handle GET and POST request.

Written for computer network course.

GET method

GET method works like a normal HTTP server, but not setting index.* as the default index file.

As this server is just for the course, it maybe inefficient and insecure.

I used sendfile() to send the requested files, and mime type is judged by the extension name.

POST method

POST method is totally implemented for the lab requirements.

It will verify the username and password post to the /dopost.

How-to

make httpserver
./httpserver <public_dir>

Attribution

About

simple http server in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published