This project involves the implementation of a simple web server and a basic web proxy server using Python's socket programming. The primary focus is to understand and apply concepts of network communication, server-client architecture, and HTTP protocol handling without the use of high-level HTTP modules.
-
Web Server: Handles basic HTTP requests and returns appropriate responses including status codes like:
- 200 OK
- 304 Not Modified
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 411 Length Required
-
Web Proxy Server: Acts as an intermediary for requests from clients seeking resources from other servers.
- Python 3.x
Clone the repository to your local machine:
git clone https://github.com/peyz21/proxyserver.git
cd proxyserver
Navigate to the project directory and run:
python proxyserver.py
change later ^
Access the web server via a web browser at http://localhost:[PORT]/test.html. Configure your web browser or a separate client to send requests to the proxy server.