Check the PDF for assignment.
Microsoft Word - Assign2-HTTP.docx Assignment2–HTTP ü SubmitONLYanswersasaSINGLEPDFfile.Checkblackboardfortheduedate. ü Total3questions,120points. 1. HTTPCaching(20points) Readthislinkregarding“differentkindsofcahces”.Youcanalsodoadditionalresearchingregardingthe typesofHTTPcaching.INYOUROWNWORDS,summarizewhatyouhavereadonthetypesofHTTP caching(mainly,PrivatebrowsercachesandSharedproxycaches).Youcanjustusewords,draw diagramsetc.Also,mentionforthetypesofHTTPcachingwhatwouldbetheprosandconsforeach. ThefigurebelowisforProblems2and3.(Total100points) 2. TheHTTPGETmessage(Total40points) Considerthefigureabove,whereaclientissendinganHTTPGETmessagetoawebserver, www.kean.edu.Supposetheclient-to-serverHTTPGETmessageisthefollowing: GET http://kean.edu/~compsci/people/faculty.html HTTP/1.1 Host: www.kean.edu Accept: text/plain, text/html, image/png, image/gif, audio/mp4, audio/mpeg, video/wmv, video/mpeg Accept-Language: en-us;q=0.8, en-gb;q=0.5, fr;q=0.2, fr-ch;q=0.2, zh;q=0.1, de;q=0.1, ar;q=0.1, cs;q=0.1 If-Modified-Since: Mon, 25 Feb 2018 09:00:00 -0800 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Answerthefollowingquestions: A. WhatisthenameofthefilethatisbeingretrievedinthisGETmessage?(2pnts) B. WhatversionofHTTPistheclientrunning?(2pnts) C. Whatformatsoftext,images,audio,andvideodoestheclientbrowserprefertoreceive?[Note:for thisandthefollowingquestionsonbrowsermediaandlanguagepreferences,youwillneedtodoa bitofadditionalreadingontheWeb.Hereisagoodplacetostart.](4pnts) D. Whatlanguagesisthebrowserindicatingthatitiswillingtoaccept?(4pnts) E. Whatisthemeaningofthe"relativequalityfactor,"q,associatedwiththevariousversionof English?[Note:HereandHereisagoodplacetostart.SeealsoRFC2616](8pnts) F. Whatistheclient'spreferredversionofEnglish?Why.(4pnts) G. DoestheclientpreferSwissFrenchovertraditionalFrench?Why.(4pnts) H. Doestheclientalreadyhavea(possiblyout-of-date)copyoftherequestedfile?Explain.Ifso, approximatelyhowlongagodidtheclientreceivethefile,assumingtheGETrequesthasbeen issuedwhenyouaresolvingthisproblem?(8pnts) I. Whatisthetypeofclientbrowserandtheclient'soperatingsystem?[Note:Toanswerthis,you'll needtounderstandtheUserAgent:headerfield.Hereisagoodplacetostart.](4pnts) 3. TheHTTPRESPONSEmessage(Total60points) Considerthefigureabove,wheretheserverissendingaHTTPRESPONSEmessagebacktheclient. Supposetheserver-to-clientHTTPRESPONSEmessageisthefollowing: HTTP/1.1 200 OK Date: Mon, 25 Feb 2018 18:00:00 +0000 Server: Apache/2.2.3 (CentOS) Last-Modified: Thu, 01 Feb 2018 18:00:00 +0000 ETag: “12345-abc-67890” Content-Length: 2635 Keep-Alive: timeout=23, max=10 Connection: Keep-alive Content-type: text/html Answerthefollowingquestions: A. WhatversionofHTTPistheresponse?(3pnts) B. Wastheserverabletosendthedocumentsuccessfully?Explain(3pnts) C. Atwhatdateandtimewasthisresponsesent?(3pnts) D. Whenwasthefilelastmodifiedontheserver?(3pnts) E. Howmanybytesarethereinthedocumentbeingreturnedbytheserver?(3pnts) F. WhatisthedefaultmodeofconnectionforHTTPprotocol?Istheconnectioninthereplypersistent ornon-persistent?Explain.(6pnts) G. Whatisthetypeoffilebeingsentbytheserverinresponse?(3pnts) H. Whatisthenameoftheserveranditsversion?(3pnts) I. Whatisthetimeoutvaluefortheresponsemessage?(3pnts) J. Istheconnectiondroppedorkeptopenafterthetimeout?(3pnts) K. Whatarethemaximumnumberofrequestsandresponsestheserverhasallowed?Whathappens whenthemaximumnumberofrequestsandresponsesaresent?(3pnts) L. WhatisETagintheresponsemessage?Stateitssignificance?[Note:Toanswerthisandthe questionbelow,you'llneedtohavebasicunderstandingofETag.Here,Here(First7paragraphsfor HTTPCachingandETag),Here(section‘Differentkindsofcaches’andsection‘ETag’),Video(First5 minutes)isagoodplacetostart.](12pnts) M. AssumetheclienthostrequeststhesamepageandsentaHTTPGETrequestwithIf-None- Match: “12345-abc-67890” andtheserverresources(ETag)didnotchange.Theserverwill thenreplywithstatuscode304 Not Modified andContent-Length: 0.Whatdoesthis meanandwhyisitbeneficial?[Note:Here(presscanceliflinkasksforcredentials)andHerewill help.](12pnts)