
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
PLEASE LOOK AT MY QUESTION PLEASE .
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.”
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 3 steps with 3 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- Accomplish the following tasks involving SNORT rules: Add an appropriate rule options part to the following rule headeralert udp any any any 53 Add an appropriate rule header to the following rule options part(msg:”possible HTTP GET request”; sid:xxxxx; rev:y;) Write a complete rule header and rule options to detect an FTP connection attempt. Explain what the following rule does.alert tcp $HOME_NET 21 any any (msg:"FTP failed login";content:"Login or password incorrect"; sid:xxxxx; rev:y;)arrow_forwardplease look at my question !!!! for this nodejs router const http = require("http");const url = require('url'); var hostName = '127.0.0.1';var port = 3000; var server = http.createServer(function(req,res){res.setHeader('Content-Type','text/plain');const parsed = url.parse(req.url);const pathname = parsed['pathname'] const queryObject = url.parse(req.url,true).query;let queryValue = queryObject['name']if(queryValue==null){queryValue=""} if (pathname=="/"){res.end("SUCCESS!")}else if (pathname=="/echo"){res.end("SUCCESS! echo")}else if (pathname=="/foxtrot/:name"){queryValue = queryObject['name'].toString()res.end("SUCCESS! Received "+queryValue+" via foxtrot")}else{res.end("FAILED! Fix your URL.")} }) server.listen(port,hostName,()=>{console.log(`Server running at http://${hostName}:${port}/`);}); -------------- it runs like this picture i wnat to fix it ,when i run http://127.0.0.1:3000/foxtrot/kilo ,it should work and it shows "SUCCESS! Received kilo via foxtrot" how to…arrow_forwardDuring 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_forward
- Look at the Snort Rule shown below: alert tcp any any -> any 80 (msg:"LOCAL PHP error redirect"; content:"login.php?error="; sid:1000100; rev:1;) Which packets from the list given below would the above Snort rule trigger as intrusions? There are multiple answers, and select all that answers the question. O 64.312.1.2:4236 -> 204.126.133.9:80 POST /php2-1-10/login.php? error=http://15.2.4.6 O 64.312.1.2:4317 -> 204.126.133.22:80 GET /phpadmin/setup.php O 64.312.1.2:1437 -> 204.126.133.7:80 GET /phpadmin/setup.php? error=http://15.2.4.6 O 64.312.1.2:4315 -> 204.126.133.22:80 GET /phpadmin/login.php? error=http://15.2.4.6 O 64.312.1.2:4237 -> 204.126.133.19:80 GET /admin/errors/login.phparrow_forwarduse 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_forwardwrite a Node/Express web server that supports routing via endpoint /cookie. Declare a variable named a and initialize it to 10 seconds.In the callback of route /cookie:Check to see if the browser sends a cookie named startIf cookie start received by the server, increment value in variable a by 2 seconds.Creates and sends a cookie that expires after the number of seconds specified in the variable a.The cookie is to be named startwith assigned value of 450.Import package cookie-parser for cookie handlingarrow_forward
- In CS 240, you developed a family map server. Rather of exposing the server's functionality directly to your client, you made use of a HttpServer object with a set of handlers. Which two AWS technologies have you identified that, when combined, provide functionality that is equal to the other? Explain briefly how these two technologies interact to allow clients to have access to certain capabilities.arrow_forwardSuppose a client sends an HTTP request message with the If-modified-since header. Sup- pose the object in a server has not changed since the last time a client retrieved the object. Then the server will send a response message with the status code: A. 200 OK B. 404 Not Found C. 304 Not Modified D. none of the abovearrow_forward1. Please access any web site so you that you can capture TCP packets from an HTTP request. 2. Please expand all the fields in the header of your HTTP request packet. Take a screenshot for all the fields in the header fields of the HTTP packet. 3. Please expand all the fields in the header of the TCP packet in your HTTP request packet. Take a screenshot for all the fields in the header of the TCP packets. Please answer the following questions based on your HTTP request, and TCP packets screenshots: 1. What is the method used in your HTTP request? 2. What is the host name you visited? 3. What is the connection status in your HTTP request? 4. What are the source port and destination port, respectively? 5. What are the sequence number and acknowledgement number, respectively? 6. Which flags are set up in the captured packet? Explain what the flags mean.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