Develop a small web proxy server

Assignment Help Other Subject
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

Reference no: EM132710680

Questions Cloud

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

Reviews

Write a Review

Other Subject Questions & Answers

  Federal laws that impact the hiring process

How do law enforcement agencies recruit and hire the most qualified candidates? Be sure to address the applicable federal laws that impact the hiring process

  Which citations and penalties you would contest

Which citations and penalties you would contest, What information will be presented before the ALJ that was not presented in the informal conference.

  Expain three films that will serve as the main event

Identify three films that will serve as the main event for the festival. Each film must relate back to the theme. In your justification, use specific scenes, rather than general plot summary, from each movie.

  Postcolonial theorists highlight in tempest

One of the key themes that Postcolonial theorists highlight in Tempest is tension in power relationships among the visitors and inhabitants of the island

  What mitigation processes are used to resolve differences

If a single risk cube were to be created from those of all peers, would significant differences be expected? What mitigation processes might be used to resolve.

  Discuss the measurement and valuation of provisions

Discuss the measurement and valuation of provisions and contingent liabilities or contingent assets employed by the chosen company

  Write a reaction to concept of the manufacturing of consent

Noam Chomsky 1980 Media Control)-  Write a reaction to the concept of the manufacturing of consent.

  Discuss about the implementation of the care plan

What group have you selected (for example, three families with young children, and so on)? What made you select this particular group?

  Describes the cognitive dissonance in given form

The textbook describes cognitive dissonance as the difference between our beliefs and our actions. Provide five (5) examples of cognitive dissonance.

  What were some influences he discussed

In the video, Hetain Patel discusses ways of understanding who he is. What were some influences he discussed? What thoughts, ideas or questions came up while watching this video

  Summarizes the policy and rationale in short sentences

Find and briefly explain 2 policies for each of the seven functions of HR (14 policies in total). Provide the weblink for each policy that refers to.

  Unit provides support to minors

Question 1 The __________ unit provides support to minors, including advice and referral services. juvenile services traffic services patrol services administrative services 4 points Question 2 In the present day, most probationary periods in a polic..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd