iyht / Proxy-Server

A small web proxy that is able to cache web pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy Sever

CSC358A1: A implementation of a small web proxy which is able to cache web pages.

Sample

mkdir cache
python3 proxy.py 120 // 120 indicates the cached item expires 120 after it's created

In you browser type http://localhost:8888/www.baidu.com

The proxy will first cache the website and inject a yellow box with text to show the version of the website.

Note this proxy doesn't work for HTTPS, only work for HTTP website.

Make sure you mkdir a cache folder before run.

baidu

http://localhost:8888/www.example.org

example

Contribution

This assignment was done by Abdulwasay Mehar and Haotian Yang

About

A small web proxy that is able to cache web pages.


Languages

Language:Python 100.0%