Implement a simple HTTP server application

Assignment Help Web Project
Reference no: EM131702977

Data Communications & Computer Networks Lab Assignment

Introduction

In this assignment, you will implement a simple HTTP server application and use it with off-the-shelf HTTP clients (including httpc client, the result of Assignment #1). Precisely, we aim to build a simple remote file manager on top of the HTTP protocol in the server side. Before starting on this Lab, we encourage you to review the programming samples (provided with Assignment # 1) and the associated course materials.

Outline

The following is a summary of the main tasks of the Assignment:

1. Study-Review HTTP network protocol specifications (Server Side).

2. Build your HTTP server library that implements the basic specifications.

3. Develop a minimal file server on top of the HTTP server library.

4. (Optional) Enhance the file server application to support simultaneous multi-requests.

5. (Optional) Implement the support for Content-Type and Content-Disposition headers.

Objective

In the previous assignment, we focused on the client side of the HTTP protocol. We built a simple HTTP client command line and tested it on a real HTTP Servers (Web Servers). In this Lab, we concentrate on the server side of the HTTP protocol. Similarly to Assignment #1, the goal of the Lab is to develop your programming library that implements the basic functionalities of the HTTP server as will be described in the following sections.

The HTTP is a general-purpose protocol. However, it is mostly used in web servers to provide access to the web content. Apache HTTP Server is the most used implementation of HTTP protocol server side.

In our context, we use HTTP protocol to manage a remote file system through HTTP request and responses. Therefore, our goal is to build a file server application on top the developed HTTP server library.

Study and review HTTP Protocol -

In this step, you are asked to review HTTP protocol. In this context, you should focus on the server side features, since you are requested to implement some of them. We urge you to consider HTTP version 1.0 due to its simplicity and easy to implement. You can find the complete specifications of HTTP protocol version 1.0 in this web link HTTP[4]. Furthermore, you can make tests by sending requests and receiving HTTP server responses using the Telnet [3] command line. The pervious tests could show the typical HTTP responses for your testing requests.

Develop HTTP Server Library -

In this part, you are requested to develop your HTTP server library separately from application, to decouple the HTTP protocol specification from the intended end-application. Your HTTP library should be self-contained with a minimum dependency such as Socket library.

You are required to implement only a subset of the HTTP specifications. In essence, the library should include the features that can handle the requests from the httpc app of Assignment #1. To this end, you can test your library by implementing testing examples to check if it is working properly with client applications.

When you finish the testing examples you should check with the Lab Instructor.

Build a File Server Application Using Your HTTP Library -

In this task, you are required to make an end-application to the previous library functionalities. In other words, you should build a remote file server manager on top the library according to the following requirements:

1- GET / returns a list of the current files in the data directory. You can return different type format such as JSON, XML, plain text, HTML according to the Accept key of the header of the request. However, this is not mandatory; you can simply ignore the header value and make your server always returns the same output.

2- GET /foo returns the content of the file named foo in the data directory. If the content does not exist, you should return an appropriate status code (e.g. HTTP ERROR 404).

3- POST /bar should create or overwrite the file named bar in the data directory with the content of the body of the request. You can implement more options for the POST such as overwrite=true|false, but again this is optional.

Attachment:- Assignment File.rar

Reference no: EM131702977

Questions Cloud

Describe your rationale for selecting the target markets : Describe your rationale for selecting the target markets that you did. State why these markets are attractive to you as a marketer.
Discuss communication in our interpersonal relationships : There are pros and cons to using mediated communication in our interpersonal relationships
Which most of units produced conform to specifications : A production process operates in one of two states: the in-control state, in which most of the units produced conform to specifications,
What important principle did griggs v. duke power illustrate : What important principle did Griggs v. Duke Power illustrate? How is it relevant to today's employment practices? Was it a good decision? Why or why not?
Implement a simple HTTP server application : COMP6461 -Data Communications & Computer Networks Lab Assignment. In this assignment, you will implement a simple HTTP server application
Discuss most frustrating situations in professional world : Have you ever found yourself in a situation where the work environment was unprofessional. How did you handle the situation
What are the risks associated with fighting a format war : Between 2004 and 2008, there was a format war in the consumer electronics industry between two different versions of next generation high-definition DVD players
What would be the present value of the given loan : Now, if interest rates on other similar-quality loans are 10 percent, what would be the present value of this loan?
What is phantom limb pain and how is it explained : What is Phantom Limb Pain and how is it explained and treated, What is brain plasticity and what is its significance throughout the lifespan

Reviews

len1702977

11/2/2017 4:54:25 AM

Important Note: You must use only the bare-minimum socket APIs provided by the chosen programming language. Therefore, you must not leverage any library that could abstract the socket programming. When you finish the testing examples you should check with the Lab Instructor. A web server is a computer system that processes requests via HTTP, the basic network protocol used to distribute information on the World Wide Web. The term can refer to the entire system, or specifically to the software that accepts and supervises the HTTP requests. Important Note: You can this assignment individually or in a group of at most 2 members (i.e. you and another student). No extra marks or any special considerations will be given for working individually.

len1702977

11/2/2017 4:54:17 AM

Deliverable - Create one zip file, containing the necessary source-code files (.java, .c, etc.) You must name your file using the following convention: If the work is done by 1 student: Your file should be called A#_studentID, where # is the number of the assignment. studentID is your student ID number. If the work is done by 2 students: The zip file should be called A#_studentID1_studentID2, where # is the number of the assignment. studentID1 and studentID2 are the student ID numbers of each of the group members. Assignments must be submitted in the right folder of the assignments. Assignments uploaded to an incorrect folder will not be marked and result in a zero mark. No resubmissions will be allowed.

Write a Review

Web Project Questions & Answers

  Write client-server program and perform popularity checking

Write a client/server program and perform popularity checking. The client will take the input (the document to be examined)

  List the wordpress components and features you used

Describe the website structure and the purpose of each element (include snapshots and diagrams where appropriate). List the WordPress components and features you used in the development of the prototype

  Describe two popular web server software products

Web server configuration depends on the web server software that is used. Describe two popular web server software products and the advantages of each

  Evaluate client-side and server-side technologies

Critically evaluate the theory and technical skills required to design and develop dynamic web applications and critically evaluate appropriate client-side and server-side technologies.

  Create a test application demonstrating architecture for hci

Create a test application demonstrating the architecture and design for HCI and Data Management layers you have developed in Parts 1 and 2.

  Discuss user analysis and usability testing

Continue to develop a proposal that is intended to win a contract to redesign a website for a spa. You will discuss user analysis and usability testing. There are several user analysis techniques you can use to gather requirements from users.

  Identify characteristics that make good design effective

Identify the characteristics that make the good design effective and efficient. Include readability, use of colors, font, and the overall design of the website.

  Add some general information about yourself

Add some general information about yourself. Add a picture. Be sure that you have permission to use the picture. Select Conceptual Web Diagram for the template.

  Analyze tradeoffs needed in developing mobile applications

Analyze the tradeoffs needed in order to develop mobile applications. Evaluate each tradeoff based on its effects on application development and the quality of the end product.

  How to implement a virtual infrastructure for the company

You are to consider how to implement a virtual infrastructure for the company and prepare a report for the management. Your report should include: One page executive summary

  Implement the client for app using html5

Implement the client for app using HTML5, CSS and JQuery Mobile. The website should be based on a multi-page template structure - The Get button is used to search the mongolab mongdb database for all database entries that match the treatment number.

  What were the goals of the web site

What were the goals of the web site? Did you meet the goals? How did your design decisions affect the target audience? Can the target audience easily navigate this site?

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