This repository contains a basic HTTP web server implemented in C. The server listens on port 8080 and responds with a "Hello world!" message for most requests. However, if the request URI is /favicon.ico, a 404 Not Found response is returned.
- Simple HTTP server that listens on port
8080. - Returns a "Hello world!" message for most requests.
- Returns a
404 Not Founderror for requests to/favicon.ico. - Displays connection details, such as the client's IP address, port, and the HTTP request details (method, URI, and version).
To compile the server, run the Makefile.py script using Python:
$ python Makefile.pyThis will generate an executable named webserver.
After compiling, you can start the server by executing:
$ ./webserverVisit http://localhost:8080 in your browser to see the server in action.
For any queries or suggestions related to this web server, please reach out to:
- Email: ofekalm100@gmail.com