Presentation is loading. Please wait.

Presentation is loading. Please wait.

Net431:advanced net services

Similar presentations


Presentation on theme: "Net431:advanced net services"— Presentation transcript:

1 Net431:advanced net services
Networks and Communication Department Tutorial 4

2 at least any two general headers, any two request headers,
Q1: Show a request that retrieves the document /usr/users/doc/doc1. Use : at least any two general headers, any two request headers, And any one entity header. 27-Nov-18 Networks and Communication Department

3 GET /usr/users/doc/doc.1 HTTP /1.1 Date: Fri, 13-Jan-06 08:45:20 GMT
MIME-version: 1.0 Accept: image/gif Accept: image/jpeg Last modified: Mon, 09-Jan-06 27-Nov-18 Networks and Communication Department

4 Q2. Show the response to Question #1, 1 for a successful request with four lines of header. The header lines define the date, server, MIME version, and length of the document for a document with 4623 lines. 27-Nov-18 Networks and Communication Department

5 HTTP/1.1 200 OK Date: Fri, 13-Jan-06 08:45:25 GMT Server: Challenger
MIME-version: 1.0 Content-length: 4623 (Body of document) 27-Nov-18 Networks and Communication Department

6 Q3: Show the response to Question #1 for a document that has permanently moved to /usr/deads/doc1. With three lines of header defines the date, new server name and new location. 27-Nov-18 Networks and Communication Department

7 HTTP/1.1 301 Moved permanently Date: Fri, 13-Jan-06 08:45:25 GMT
Server: Challenger Location: /usr/deads/doc.1 27-Nov-18 Networks and Communication Department

8 Q4: Show the response to Question #1 if there is a syntax error in the request. With two headers for server and date. 27-Nov-18 Networks and Communication Department

9 HTTP/1.1 400 Bad Request Date: Fri, 13-Jan-06 08:45:25 GMT
Server: Challenger 27-Nov-18 Networks and Communication Department

10 Q5. Show the response to Question#1 if the client is unauthorized to access the document with two headers for server and the date of access. 27-Nov-18 Networks and Communication Department

11 HTTP/1.1 401 Unauthorized Date: Fri, 13-Jan-06 08:45:25 GMT
Server: Challenger 27-Nov-18 Networks and Communication Department

12 Q6: Show a request that asks for information about a document at /bin/users/file.
Use at least: two general headers. and one request header. 27-Nov-18 Networks and Communication Department

13 HEAD /bin/users/file HTTP /1.1 Date: Fri, 13-Jan-06 10:40:22 GMT
MIME-version: 1.0 From: 27-Nov-18 Networks and Communication Department

14 Q7: Show a request to retrieve the file at location /bin/etc/file
Q7: Show a request to retrieve the file at location /bin/etc/file!. The client needs the document of any type of medium only if it was modified after January 23, use four line of headers. With date and MIME-version. 27-Nov-18 Networks and Communication Department

15 GET /bin/etc/file1 HTTP /1
GET /bin/etc/file1 HTTP /1.1 Date: Fri, 13-Jan-06 11:22:08 GMT MIME-version: 1.0 Accept: */* If-modified-since: 23-Jan :00:00 GMT 27-Nov-18 Networks and Communication Department

16 Q8: Show a request to send and store a file at location /bin/letter
Q8: Show a request to send and store a file at location /bin/letter. The client Should identifies the types of documents it can accept (text/html), (gif), (jpeg). There will be six lines of header with (date, MIME-version). 27-Nov-18 Networks and Communication Department

17 PUT /bin/letter HTTP /1.1 Date: Fri, 13-Jan-06 11:47:00 GMT MIME-version: 1.0 Accept: text/html Accept: image/gif Accept: image/jpeg Location: /bin/letter 27-Nov-18 Networks and Communication Department

18 Q9: Show the response to Question#8
Q9: Show the response to Question#8. The response shows seven lines of headers the age of the document, Server, MIME- version, content type and length as well as the date and time when the contents may change. 27-Nov-18 Networks and Communication Department

19 Content-type: text/html Content-length: 6324 Age: 10:06:02
HTTP/ OK Date: Fri, 13-Jan-06 11:51:02 GMT Server: Challenger MIME-version: 1.0 Content-type: text/html Content-length: 6324 Age: 10:06:02 Expires: 09-May-06 00:00:00 GMT 27-Nov-18 Networks and Communication Department

20 Q10: Compare between Persistent vs non- persistent HTTP connections?
27-Nov-18 Networks and Communication Department

21 Persistent vs non-persistent HTTP connections
default for HTTP/1.1 on same TCP connection: server, parses request, responds, parses new request,.. less slow start. HTTP/1.0 server parses request, responds, and closes TCP connection Each object transfer suffers from slow start

22 Q&A 27-Nov-18 Networks and Communication Department


Download ppt "Net431:advanced net services"

Similar presentations


Ads by Google