logo Use CA10RAM to get 10%* Discount.
Order Nowlogo

Create a proxy server that can be connected by a single client and would only allow http requests

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Programming Assignment #1

CSCE 3530 - Introduction to Computer Networks Fall 2017

100 Points

Due: 06/19/2019, 11:59 PM

 

Instructions: 

  1. Compile the C programs and make sure it’s working.
  2. Comment your code. iii)Create a text file that describes the working and usage of the code.  
  3. Please create a zip archive of your assignment folder (text file, code, and header files) and upload the zip file.
  4. Not following the above instructions could result up to 20% deduction from your lab assignment score.

Objective:

Create a proxy server that can be connected by a single client and would only allow http requests. 

Requirements:  

  1. Create a C-based client-server architecture using sockets
  2. The proxy server should be able to accept and service single client’s http requests
  3. The proxy server should run on cse01.cse.unt.edu machine and the client should run on cse02.cse.unt.edu machine Procedure:
  4. Create a C-based server that can accept single client’s request using sockets.
  5. The created proxy server should also be able to connect to the client requested website through port 80.
  6. Make sure the proxy server runs on cse01.cse.unt.edu and the format to start the proxy server as follows

pserver

where pserver is the proxy server executable and port_number is the port number on which the proxy server listens.

  1. Create a C-based client that can connect to the proxy server using sockets.
  2. Make sure the client runs on cse02.cse.unt.edu and connects the proxy server. The user can request the desired web page using the below format.

client url:

where client is the client executable, port_number is the port number on which the client connects the server and url is the requested url.

  1. Once the proxy server gets a request from the client, it then forwards the request to the web server.
  2. The web server responds with the requested web page. Capture the returned webpage from the web server and forward it to the client.
  3. Verify to see if the returned page is same as the browser returned page. Figure 1 shows the overall architecture.

An example client and server code is given on Canvas to start programming. Compile and run them, and explore the functions before attempting to solve this assignment.

Expert's Answer

1065 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1065 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

671 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

610 Answers

Hire Me
expert
Husnain SaeedComputer science

867 Answers

Hire Me
expert
Atharva PatilComputer science

532 Answers

Hire Me

Get Free Quote!

335 Experts Online