全球旧事资料 分类
asty
detailsbehi
dacro
ymslikeHTTPCGIa
dJSPAsaStrutsdeveloperyoudo
’t
eedto
bea
alphabetsoupgurubutaworki
gk
owledgeofthesebasetech
ologiesca
help
youdevisecreativesolutio
stotrickyproblems
321HypertextTra
sferProtocolHTTP
Whe
mediati
gtalksbetwee
atio
sdiplomatsofte
followaformal
protocolDiplomaticprotocolsaredesig
edtoavoidmisu
dersta
di
gsa
dtokeep
egotiatio
sfrombreaki
gdow
I
asimilarvei
whe
computers
eedtotalktheyalso
followaformalprotocolTheprotocoldefi
eshowdataistra
smitteda
dhowtodecodeit
o
ceitarrivesWebapplicatio
susetheHypertextTra
sferProtocolHTTPtomovedata
betwee
thebrowserru
i
go
yourcomputera
dtheapplicatio
ru
i
go
the
serverMa
yserverapplicatio
scommu
icateusi
gprotocolsothertha
HTTPSomeof
thesemai
tai
a
o
goi
gco
ectio
betwee
thecomputersTheapplicatio
server
k
owsexactlywhoisco
ectedatalltimesa
dca
tellwhe
aco
ectio
isdropped
Becausetheyk
owthestateofeachco
ectio
a
dtheide
tityofeachperso
usi
git
thesearek
ow
asstatefulprotocolsByco
trastHTTPisk
ow
asastatelessprotocol
A
HTTPserverwillaccepta
yrequestfroma
yclie
ta
dwillalwaysprovidesometype
ofrespo
seeve
iftherespo
seisjusttosay
oWithouttheoverheadof
egotiati
g
a
dretai
i
gaco
ectio
statelessprotocolsca
ha
dlealargevolumeofrequests
Thisiso
ereaso
whytheI
ter
ethasbee
abletoscaletomillio
sof
computersA
otherreaso
HTTPhasbecometheu
iversalsta
dardisitssimplicityA
HTTPrequestlookslikea
ordi
arytextdocume
tThishasmadeiteasyforapplicatio
s
tomakeHTTPrequestsYouca
eve
se
da
HTTPrequestbyha
dusi
gasta
dard
utilitysuchasTel
etWhe
theHTTPrespo
secomesbackitisalsoi
plai
textthat
developersca
readThefirstli
ei
theHTTPrequestco
tai
sthemethodfollowedby
thelocatio
oftherequestedresourcea
dtheversio
ofHTTPZeroormoreHTTP
requestheadersfollowthei
itialli
eTheHTTPheadersprovideadditio
ali
formatio
to
theserverThisca
i
cludethebrowsertypea
dversio
acceptabledocume
ttypes
第4页
共19页
f郑州大学信息工程学院科技文献翻译
StrutsI
Actio

a
dthebrowser’scookiesjustto
ameafewOftheseve
requestmethodsGETa
d
POSTarebyfarthemostpopularO
cetheserverhasreceiveda
dservicedtherequest
itwillissuea
HTTPrespo
seThefirstli
ei
therespo
seiscalledthestatusli
ea
d
carriestheHTTPprotocolversio
a
umericstatusa
dabriefdescriptio
ofthestatus
Followi
gthestatusli
etheserverwillretur
asetofHTTPrespo
seheadersthatwork
i
awaysimilartotherequestheadersAsweme
tio
edHTTPdoes
otpreservestate
i
formatio
betwee
requestsTheserverlogstherequestse
dstherespo
sea
dgoes
blissfullyo
tothe
extrequestWhiler
好听全球资料 返回顶部