Skip to content

gulshan-mittal/Proxy-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

HTTP Proxy Server

Gulshan Kumar Mittal

How to run code

  • Proxy-Server

    • ./proxy_server.py
  • Web-Server

    • ./web_server.py
  • On terminal or Browser

    • terminal

      • curl -iv --raw -x http://localhost:7777 http://127.0.0.1:7776/<file-name>
    • Browser

      • Set the proxy e.g in firefox open the preference option inside network use proxy= 127.0.0.1 and port = 7777

      • open any file

Proxy Server

A proxy server is a dedicated computer or a software system running on a computer that acts as an intermediary between an endpoint device, such as a computer, and another server from which a user or client is requesting a service. The proxy server may exist in the same machine as a firewall server or it may be on a separate server, which forwards requests through the firewall.

Caching

When the proxy server gets a request, it checks if the requested object is cached (i.e. server already has the request webpage or file), and if yes, it returns the object from the cache, without contacting the server.If the object is not cached, the proxy retrieves the object from the server, returns it to you and caches a copy of this webpage for future requests.In case of any further requests for the same, the proxy must utilize the “If Modified Since” header to check if any updates have been made, and if not, then serve the response from the cache.

About

Python based proxy server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages