Reference no: EM132710680
Lab: HTTP Web Proxy Server
In this lab, you will learn how web proxy servers work and one of their basic functionalities - caching.
Your task is to develop a small web proxy server which is able to cache web pages. It is a very simple proxy server which only understands simple GET-requests, but is able to handle all kinds of objects - not just HTML pages, but also images.
Optional Exercises
1. Currently the proxy server does no error handling. This can be a problem especially when the client requests an object which is not available, since the "404 Not found" response usually has no response body and the proxy assumes there is a body and tries to read it.
2. The simple proxy server supports only HTTP GET method. Add support for POST, by including the request body sent in the POST-request.
3. Caching: A typical proxy server will cache the web pages each time the client makes a particular request for the first time. The basic functionality of caching works as follows. When the proxy gets a request, it checks if the requested object is cached, 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 the client and caches a copy for future requests. In practice, the proxy server must verify that the cached responses are still valid and that they are the correct responses to the client's requests. You can read more about caching and how it is handled in HTTP in RFC 2068. Add the simple caching functionality described above. You do not need to implement any replacement or validation policies. Your implementation, however, will need to be able to write responses to the disk (i.e., the cache) and fetch them from the disk when you get a cache hit. For this you need to implement some internal data structure in the proxy to keep track of which objects are cached and where they are on the disk. You can keep this data structure in main memory; there is no need to make it persist across shutdowns.
Attachment:- Lab_ProxyServer.rar
Why the growth in world population can negatively affect
: Threats to Global Environment PP Deck, Examine the factors that account for why the growth in the world's population can negatively affect global society.
|
Desired outcome as a result of the proposed change
: Assess the current culture within the organization at the time of your experience. Determine the desired outcome as a result of the proposed change.
|
Problem - Single Step Income Statement
: Problem - Single Step Income Statement - rent revenue, $120,000; sales, $13,580,000 and selling expenses, $1,250,000
|
Managing the supply chain in the automotive industry
: What sources of international law are most relevant to managing the supply chain in the automotive industry.
|
Develop a small web proxy server
: Develop a small web proxy server which is able to cache web pages. It is a very simple proxy server which only understands simple GET-requests
|
Nonrational decision making model does byford employ
: What is the underlying problem in this case from NYCTA President Andy Byford's perspective? Which Nonrational decision making model does Byford employ? How?
|
Why is the diagnosis of the problem so important
: Why is the diagnosis of the problem so important in the change management process? What important purpose does the diagnosis serve
|
Managing the respective organizational change
: You are required to conduct an interview from a company representative to get insight about their culture.
|
What is the amount of the increase to accounts receivable
: Sales tax - A sale of merchandise on account for $5,000 is subject to an 8% sales tax. What is the amount of the increase to Accounts Receivable
|