
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
how could that use node js to create a webserver that
Create a web server that
- Accepts and processes request messages submitted from browser, and
- Generates and sends response messages back to browser for display.
Your web server must be able to handle
- URL with hostname and port
- Request message URL: 0.0.1:3000
- Response message: “SUCCESS!”
- URL with hostname, port and path
- Request message URL: 0.0.1:3000/alpha
- Response message: “SUCCESS! alpha”
- URL with hostname, port, path and query string
- Request message URL: 0.0.1:3000/bravo?name=charlie
- Response message: “SUCCESS! bravo charlie”
- Invalid/unexpected URL
- Request message URL: 0.0.1:3000/<any other value>
- Response message: “FAILED! Fix your URL.”
Hostname 127.0.0.1 can be replaced by localhost.
Port number 3000 can be replaced by any other port number that is from 1024 (2^11) to 65535 (2^17 – 1) inclusive.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- During CS 240, you developed a server for a family map. In order to make the server's functionality accessible to the client, you made use of a HttpServer object in conjunction with a collection of handlers. Which two AWS technologies have you found, when combined, to give functionality that is equal to that of the other technology? Briefly detail how these two technologies interact to allow clients to access functionality.arrow_forwardTrue or false? Two distinct Web pages (for example, www.mit.edu/research.html and www.mit.edu/students.html ) can be sent over the same persistent connection.arrow_forwardImagine we are designing a RESTFUL service for interacting with photos.We want people to expose a service that allows people to create, read, update, and destroy photos.What should the base URL be for the routes? For example we should be able to retrieve the photos with: GET_________?arrow_forward
- use nodejs to create a server that URL with hostname, port, path foxtrot and route parameter value kilo Request message URL: 0.0.1:3000/foxtrot/kilo Response message: “SUCCESS! Received kilo via foxtrot” where the value kilo must be retrieved via the route parameter Invalid/unexpected URL Request message URL: 0.0.1:3000/<any other value> Response message: “FAILED! Fix your URL.”arrow_forwardUSING UBUNTU! Show me all code for each step! Be detailed please. * Apache running * All user html directories named pub. Therefore http://googee.nmu.edu/~fred gets mapped to /home/fred/pub. * Make a new user named WWW. The "/" gets mapped to /home/WWW/pub. Therefore http://googee.nmu.edu gets mapped to /home/WWW/pub/ * A basic index.html file in /home/WWW/pub * Setting such that there are no directory listings and no cgis runnable * The URL http://googee.nmu.edu/icons mapped to /home/WWW/Pictures/icons * Logs stored in /var/log/my_wb_logs in combined logfile format * A web analyzer (webalizer = 0.5, analog = 1.0) that shows activity stats accessable via the web. * The user 'someone' is unable to make web pages in his home directory tree, even if he's tricky. No hand written and fast answer with explanationarrow_forwardCreate a ‘mock’ LinkedIn post (minimum of 100 words to maximum of 300 words) that you would like to share with your network, upon finishing your certificate program at Extended Education. You can write a professional update or a request for assistance with the job search.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY