算法分析作业代写 Algorithms and analysis代写 JAVA代写
1063Assignment 2 算法分析作业代写 IMPORTANT NOTES • If you are asked to develop/design an algorithm, you need to describe it in plain English first, say a paragraph, IMPORTANT NOTES •...
View detailsSearch the whole station
计算机网络作业代写 In this assignment, you will develop a simple Web client/server in Java. You can assume the server is capable of processing only one request at a
In this assignment, you will develop a simple Web client/server in Java. You can assume the server is capable of processing only one request at a time.
Specifically, your Web server will
1) create a TCP connection socket when contacted by a client (that plays a browser role)
2) receive HTTP GET requests over the connection
3) parse the request to determine the specific file being requested
4) get the requested file from the server’s file system
5) create an HTTP response message consisting of the requested file preceded by header lines
6) send the response over the TCP connection to the requesting client
If a browser requests a file that is not present in your server, your server should return a “404 Not Found” error message.
Your Web client will 计算机网络作业代写
1) create a connection socket given the server info (IP and Port 80)
2) send an HTTP GET request asking for a file specified by a user input
3) receive the HTTP response message from the server
a) If it is an error message, show the error
b) If it is a requested file, it saves the file into a local directory
You can use a simplified HTTP request message format. A request message may look like:
GET http://192.168.0.2/files/hello.txt
Similarly, a response message may look like:
HTTP/1.1 200 OK [content body]
A simple example of TCP socket programming
Course Canvas: Files > codes > tcp socket example
HTTP GET message format
https://book.systemsapproach.org/applications/traditional.html#request-messages
Output stream
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/OutputStream.html
Input stream
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/InputStream.html
○ Socket created with IP/Port
○ A message sent
○ A message received
○ What is the parsed HTTP request
○ What is the response message content
○ Show screen captures (both server and client) that show the client can download and save
■ Image file (.png or .jpg),
■ A simple text file,
■ Our course slide PDF file
○ Show screen captures (both server and client) that show the client receives an error message when requesting an invalid file name.
○ Please comment on the codes appropriately so the grader can understand your codes easily.
更多代写:CS美国代考推荐 gre远程代考 英国会计网课代修 article paper内容代写 北美留学生report代写 高校summary代写
合作平台:essay代写 论文代写 写手招聘 英国留学生代写
Assignment 2 算法分析作业代写 IMPORTANT NOTES • If you are asked to develop/design an algorithm, you need to describe it in plain English first, say a paragraph, IMPORTANT NOTES •...
View detailsJava Java编程作业代写 General coursework requirements: Considering the program requirements and the marking criteria: • Produce a Java program for a Reversi/Othello General coursewor...
View detailsCOMP S311 Online Exam Time Allowed: 3 hours java编程考试代做 Instructions - Answer ALL questions in Part I. [60%] - Answer no more than FOUR (4) questions in Part II. [40%] - The total mark...
View detailsweb程序代做的人员都是专业的程序员吗? web程序代做 网站设计是非常重要的技能,如果是学习计算机专业的,那么这个技能是必须要熟练掌握的,在国外的高校中,也是有这方面的课程的,而且都是会给学生布置一...
View details