HTTP Proxy Server

CS 260: Computer Networks I: Interprocess Communication

Language: C++

OS: Windows

This program receives HTTP requests for other systems, passes the request to the correct system, and then forwards the response to the original requester. To a real web server, this program appears to be the client, and to the requester, the program appears to be the server. The HTTP proxy server can process multiple requests concurrently.

This project has two parts- the HTTP proxy server itself, and a helper that handles a single HTTP request.

Client Handler

The client handler is used to make an HTTP request on behalf of a client and then return the response back to the client. It is given an address to make a request from and the address of the original client. The handler sends that request, listens for the response, and finally sends the response to the original client.

HTTP Proxy Server

The proxy server is started and immediately begins listening for requests. When a request is received, it creates a client handler on its own thread and resumes listening.

Previous
Previous

C Game Engine

Next
Next

Memory Debugger