Java编程作业代写 Java代写 Java代码代写 Java program代写
1013Java Java编程作业代写 General coursework requirements: Considering the program requirements and the marking criteria: • Produce a Java program for a Reversi/Othello General coursewor...
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代写 论文代写 写手招聘 英国留学生代写
Java Java编程作业代写 General coursework requirements: Considering the program requirements and the marking criteria: • Produce a Java program for a Reversi/Othello General coursewor...
View detailsEBU4201 Introductory Java Programming Time allowed 2 hours Java 编程考试代写 Instructions Before the start of the examination 1) Place your BUPT and QM student cards on the corner of...
View detailsTerm Project web程序作业代写 Instructions Students must swarm groups upto 3 persons to develop the command line application (NOT web application). Instructions Students must swarm groups ...
View detailsEBU4201 Introductory Java Programming Java编程考试代考 Instructions Before the start of the examination 1) Place your BUPT and QM student cards on the corner of your desk so Time allowed 2 h...
View details