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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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