HTTP(Hyper Text Transfer Protocol)�

jegadeesanram5 82 views 36 slides May 01, 2021
Slide 1
Slide 1 of 36
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36

About This Presentation

The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web.
HTTP functions as a combination of FTP and SMTP.
It is similar to FTP because it transfers files and uses the services of TCP.
It is much simpler than FTP because it uses only one TCP connection.
...


Slide Content

HTTP(Hyper Text Transfer Protocol)
Dr R JegadeesanProf-CSE
JyothishmathiInstitute of Technology
and Science, Karimnagar

•TheHypertextTransferProtocol(HTTP)isa
protocolusedmainlytoaccessdataonthe
WorldWideWeb.
•HTTPfunctionsasacombinationofFTP
andSMTP.
•ItissimilartoFTPbecauseittransfersfiles
andusestheservicesofTCP.
•ItismuchsimplerthanFTPbecauseituses
onlyoneTCPconnection.
•Thereisnoseparatecontrolconnection;
onlydataaretransferredbetweentheclient
andtheserver.

•HTTPislikeSMTPbecausethedatatransferred
betweentheclientandtheserverlooklikeSMTP
messages.
•TheformatofthedataiscontrolledbyMIME-like
headers.
•UnlikeSMTP,theHTTPmessagesarenotdestinedto
bereadbyhumans;theyarereadandinterpretedbythe
HTTPserverandHTTPclient(browser)
•SMTPmessagesarestoredandforwarded,butHTTP
messagesaredeliveredimmediately

•Thecommandsfromtheclienttotheserverare
embeddedinarequestmessage.
•Thecontentsoftherequestedfileorother
informationareembeddedinaresponse
message.
•ASSMTPusestheservicesofTCPonwell-
knownport25,POP3uses110,IMAP4uses143
portnumber
•HTTPusestheservicesofTCPonwell-known
port80.

HTTP Transaction
•FigureillustratestheHTTPtransaction
betweentheclientandserver.
•Theclientinitializesthetransactionby
sendingarequestmessage.
•Theserverrepliesbysendingaresponse
message

Messages
•Theformatsoftherequestandresponse
messagesaresimilar;bothareshownin
figure
•Arequestmessageconsistsofarequestline,
aheader,andsometimesabody.
•Aresponsemessageconsistsofastatusline,a
header,andsometimesabody.

Request and Status Line
•Thefirstlineinarequestmessageiscalleda
requestline;
•Thefirstlineintheresponsemessageis
calledthestatusline.
•Thereisonecommonfield,asshownin
Figure

Request type.
•Thisfieldisusedintherequestmessage.
•Inversion1.1ofHTTP,severalrequesttypesaredefined.
theyare
➢GET
➢HEAD
➢POST
➢PUT
➢CONNECT

•GET
Requests a document from the server
•HEAD
Requests information about a document but
not the document itself.
•POST
Client submits data to be processed to a
specified server

•PUT
Sends a document from the server to client
•CONNECT
Reserved(connection established between
client and server)

•Status code
➢Thestatuscodefieldissimilartothoseinthe
FTPandtheSMTPprotocols.
➢Itconsistsofthreedigitscode.
➢Whereasthecodesinthe100rangeareonly
informational
➢thecodesinthe200rangeindicateasuccessful
request.
➢Thecodesinthe300rangeredirecttheclientto
anotherURL
➢thecodesinthe400rangeindicateanerrorat
theclientsite.
➢Finally,thecodesinthe500rangeindicatean
errorattheserversite.

Statusphrase.
•Thisfieldisusedintheresponsemessage.It
explainsthestatuscodeintextform
HTTP Version.
The most current version of HTTP is 1.1.

Header
•Theheaderexchangesadditionalinformation
betweentheclientandtheserver.
•Theheadercanconsistofoneormoreheader
lines.
•Eachheaderlinehasaheadername,acolon,
aspace,andaheadervalue

•A header line belongs to one of four categories:
•General Header
•Request Header
•Response Header
•Entity Header
•A request message can contain only general,
request, and entity headers.
•A response messagecan contain only general,
response, and entity headers

General header
➢Thegeneralheadergivesgeneralinformation
aboutthemessageandcanbepresentinbotha
requestandaresponse.
➢Cache-controlSpecifiesinformationabout
caching
➢ConnectionShowswhethertheconnection
shouldbeclosedornotbetweenclientandserver
➢DateShowsthecurrentdate
➢MIME-versionShowstheMIMEversionused

Request Header
•Therequestheadercanbepresentonlyina
requestmessage.
•Itspecifiestheclient'sconfigurationandthe
client'spreferreddocumentformat
•Listofsomerequestheadersandtheir
descriptions.

•Accept
Shows the format the client can accept
•Accept-charset
Shows the character set the client can handle
•Accept-encoding
Shows the encoding scheme the client can
handle
•Accept-language
Shows the language the client can accept
•From
Shows the e-mail address of the user
•Host
Shows the host and port number of the server

•If-modified-since
Sends the document if newer than specified
date
•If-match
Sends the document only if it matches given
request
•If-range
Sends only the portion of the document
•Referrer
Specifies the URL of the linked document
•User-agent
Identifies the client program

Response header
•Theresponseheadercanbepresentonlyina
responsemessage.
•Itspecifiestheserver'sconfigurationand
specialinformationabouttherequest
•Listofsomeresponseheaderswiththeir
descriptions

•Accept-range
Showsifserveracceptstherangeof
documentrequestedbyclient
•Public
Shows the supported list of methods
•Retry-after
Specifies the date after which the server is
available
•Server
Shows the server name and version number

Entity header
•The entity header gives information about the body
of the document.
•Given below List of some entity headers and their
descriptions.
➢Content-encodingSpecifies the encoding scheme
➢Content-languageSpecifies the language
➢Content-lengthShows the length of the document
➢Content-rangeSpecifies the range of the document
➢Content-typeSpecifies the data type

Body
•Thebodycanbepresentinarequestor
responsemessage.
•Usually,itcontainsthedocumenttobesent
orreceived.

Network security

•Networksecurityisprotectionofthe
accesstofilesanddirectoriesin
computernetworkagainsthacking,
misuseandunauthorizedchangesto
thefile.

SECURITY SERVICES
•Network security can provide one of the five
services.
➢Message Confidentiality,
➢Message Integrity
➢Authentication
➢Non repudiation
➢Entity Authentication Or Identification

Message Confidentiality
•Message confidentiality or privacy means that the
sender and the receiver expect confidentiality.
•The transmitted message must make sense to
only the intended receiver.
•To all others, the message must be garbage.
•ForexampleWhenacustomercommunicates
withherbank,sheexpectsthatthe
communicationistotallyconfidential.

Message Integrity
•Messageintegritymeansthatthedatamust
arriveatthereceiverexactlyastheyweresent.
•Theremustbenochangesduringthe
transmission,neitheraccidentallynor
maliciously.
•Asmoreandmoremoneyexchangesoccurover
theInternet,integrityiscrucial.
•Forexample,itwouldbedisastrousifarequest
fortransferringRs1000changedtoarequestfor
Rs10,000orRs1,00,000.

Authentication
•Itreferstotheprocessofverifyingthe
identityofanentityinvolvedinthe
communicationprocessi.e.determiningthe
identityofanentitybeforerevealingthe
sensitiveinformation.
•Theprocessofidentifyinganindividual,
usuallybasedonausernameandpassword.

Non repudiation
•Messagenonrepudiationmeansthatasender
mustnotbeabletodenysendingamessagethat
heorshe,infact,didsend.
•Nonrepudiationisawaytoguaranteethatthe
senderofamessagecannotlaterdenyhaving
sentthemessageandthattherecipientcannot
laterdenyhavingreceivedthemessage.
•Nonrepudiationcanbeobtainedthroughthe
useofdigitalsignatures.

Entity authentication
•Entity authenticationis a technique designed
to let one party prove the identity of another
party.
•Anentitycan be a person, a process, a client,
or a server.
•Theentitywhose identity needs to be proved
is called the claimant
•The entity that tries to prove the identity of
the claimantis called the verifier.

Thank you