Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peyz21/proxyserver
Web Proxy Servers and socket programming.
https://github.com/peyz21/proxyserver
Last synced: 3 days ago
JSON representation
Web Proxy Servers and socket programming.
- Host: GitHub
- URL: https://github.com/peyz21/proxyserver
- Owner: peyz21
- Created: 2023-11-20T19:04:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T01:38:45.000Z (about 1 year ago)
- Last Synced: 2023-12-06T06:26:43.511Z (about 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Web and Web Proxy Server
## Introduction
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.### Features
- **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.## Installation
### Prerequisites
- Python 3.x### Setup
Clone the repository to your local machine:
```bash
git clone https://github.com/peyz21/proxyserver.git
cd proxyserver
```## Usage
### Running the Web Server
Navigate to the project directory and run:```bash
python proxyserver.py
```
change later ^## Testing
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.