Skip to content

OfekiAlm/HTTPs-WebServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP Web Server in C

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.

Features:

  • Simple HTTP server that listens on port 8080.
  • Returns a "Hello world!" message for most requests.
  • Returns a 404 Not Found error 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).

How to Compile:

To compile the server, run the Makefile.py script using Python:

$ python Makefile.py

This will generate an executable named webserver.

How to Run:

After compiling, you can start the server by executing:

$ ./webserver

Visit http://localhost:8080 in your browser to see the server in action.

Contact:

For any queries or suggestions related to this web server, please reach out to:

About

Simple HTTPs Web Server in C

Resources

Stars

Watchers

Forks