An open API service indexing awesome lists of open source software.

https://github.com/allankoder/c-simple-web-server

A Simple example of a web server written in C
https://github.com/allankoder/c-simple-web-server

Last synced: 4 days ago
JSON representation

A Simple example of a web server written in C

Awesome Lists containing this project

README

          

# Simple C Web Server Network Project

This is a relatively simple web server that serves files, it is **not** RFC 9110 compliant.

The project idea was inspired by [Beej's guide to Networking Concepts](https://beej.us/guide/bgnet0/), and with help from [Beej's Guide to Network Programming](https://beej.us/guide/bgnet/)

The simple web server is for HTML, text documents, PNGS, and downloading every other type of file

## Running

```
make
```

```
./web_server
```

## UI

### Directory Listing
![image](https://github.com/user-attachments/assets/7caf20f5-e2a1-40e1-a633-69edc8872bfd)

### Displaying HTML
![image](https://github.com/user-attachments/assets/8bf88377-8ff4-4835-b12c-80eecd60112a)

### Displaying PNG's
![image](https://github.com/user-attachments/assets/db81eb61-46cf-4e00-a8ec-a17365145272)

### Downloading Files
![image](https://github.com/user-attachments/assets/b74a98ca-c6fc-4810-9fba-679eb960b05a)