ҳ > > > Web >

һƪѧϰHTTP״̬ģijɫ

2018-07-13 08:55:26Դѧϰ Ķ ()

Ͽͻ,Ʒ5

õģģǰйһõ飬ڴҷ

Ů 80 ģ 1989 3 °ɣһˣ̫ˣDzˡ

תѧ

ҸǸתѧתѧתһѧϰѧ͵ѧУѧϰĺ˵ÿ˶ѧԣͷ 6 Fast and Furious 6Ƭ翴ˣÿ춼ͷǵҵһ쵽࣬ʦǴһõѧУתʱûһ̧ͷģʶıʶ⣬ݸֽһѶѵ˽ѧУԭͬѧ̫ˣֽģ

ұ䵽һĽ䣬·źʱһԣŮͦģǸŮҽҡһĵͬѧ˵˵ ľ׵ĸоҪҸ˱ĻСŮƣɽ֮ľܶ꣩١ţָоɣձµСǡ

˵˵Ϊʲôһأ

λһˣôͻأʵСʱүүIJֿûҵմѪ̣ҵһʮѧ 30 Ӿѧˣ벻ң˱ѧ Javaѧᡣ

صѧУ

Ǧ

д˴ʣʣ˵ԽǦȸٱ㡣Ҳҽͣԭ OKȥɡ

ˮ

ддһϵҵѧУζҹôܶдҵʱ򡣿ӽ߽ũɽȪȪˮһߺһߣ˵ʱ٣ʱ쩤ѽһСģҪˣһӣǽӵˣþдҵȴȥĿȪˮŪʪһ󲿷֣˿ҵҵ˸ֱ˸㣬ٱȸҲ󶮣һԭ˼ǣҵIJݣˮʪˣҪҰʪDz֣д˵û¾ͺãдͺãдǷҵдñǰã˸߷֣ҲͦлġҲǴΣʼע⵽ҵİɡ

дοԣȫû׼ддʧܡ˿ңָҵĿȸٱȸ㣬ȸģ¶ɻı飬һͷˮIJڱʲôҽһˣ˼ǣҿôʲôݶûУҸͻȥ˵Ҳд뿴˵ĵ˼ֻرȸٱȸ㣬ȸȻʾ⣬DzҪ˵ĿҲ˼͵ͷȻͰѿƹ㣬ҳϴΰҵŪʪĻرҺܸлҳҪûҵѧ͹ˡ

ѧ Learning by doing

ÿһûһȾˣҲ˰ʦˣӾˣԼеϲˣڹԼȥӰ˸ֱ˸ȻߵĵͷҵԼˡ

ʱ򣬶ȥѧУķţһ˶ȵڶ¥ϣɹ̫ߺ̡дκ̺ȵͻȻиһ£ŵˡתͷСұֱ˸㣬ٱ˸˵ҵˡǣЦɵʱһ

ѽЦɵС޲´ֵڣҲ⣡++

֭

ҼǵСϲȹ֭лرĵʷΣʷģ

СռλЦ

û˼ģ

˯ңұ˸ģֲ˼㡣

һرȻȥ

ԭи֮룬Ҫ¿ȥ޹֭

ұȸ㣬OK

ֱ˵Ҫھȥɣ

˵ϿΣֱ˸ģ㣬Ȼһҽ˵ʦ׼ذɣ

һȻȥ˵а취

ұ֣˵Ƕʹװȥϲȴȥ˹޹֭

ƺеж

һôɰ

˸ģֱ㣬ٱȸģҡҡͷ

ûҵѰɣΪʲô

˸ģֱ㣬ٱȾţ˵ǽѻִãϲ

ҸͣôأҪమˣôִ

ֱ˸ģٱȸһűߣ͵ʱ鲻еʧġ

ұȻȥǵȻҲ԰ഺһֻһΰ

Ҽôȣòежֻʵʵ“”˸裬ٱ˸ģȸ㣬ȸ¶εı飬һ¾費׼̸У԰ˣ

ȥҿƬ

д費ڣȥҿƬһңȥϴˣȣöࣩɵѡ˸ƺװƬط DVD ܿСȿ T ԡ߳ҿˣǣҿŵӿˣշŵôܿأұ˸ģֱ˸һٱ˸塣ҽ˵ṇ̀DVD ܲŶԭ˸ƬӣԺʲôҲûҾͻؼˡ

ҵʱҿһС˵Ұɣ

ֱȸ㣬Ȼ

ʺ

˵ûõ͸ɣЦգ

վ

ÿһѧһʱˣվˣǺܺġһȥˣʶĵ죬Ҿסϸ׹ʡǧ֣˵һ£

¶

ңҶô

ܺðлл㣡˸ͷ

ңʶĵ졣

ôôǵô

ңҼǵòӣҼǵˡ

΢Ц죩

ңм¶ô

˵

ңʲôô

˵˵ѽƤģ֣

ңĬһ˵һɣ

˸ģֱһٱȸСҲ㡣

ңֱӱס

ңϲ

֪ϲҡ

ңϲô

ҡ㣡ߣ

ң׷

Ǿһˣ

дθȥ֣һСӣһָϲӣָùʱDZˡ

ţ˵

һҪ㣬ʮ֡

˵ˣô򣿡

Dñ˸ߣҲһ㣡

˸ġֱȸ㣬ٱȸ壬۷⣬¶һ˿˿ϲãȴôı顣

ң֪Ҳɵµģһ죬Ҫҵӣӡ

˸ֱ˸㣬ٱȸ˶˵İDzܵġ

ң֮䡣ûܣ

Ĭʮ

㰮𣿡

ң

ϱ˸ģֱ˸һٱȸһᰮܾ𣿡

ңֻҪ GFW ڵһ죬Ҷһֱ㣡ܾúܾã

̫жˣûзӦ

ңСС֪ôģұȳ˸ֱ˸㣬ٱȸˡ뻽ûзӦ

ңСС

عȱ˸壬ٱ㣬Ҹոպܻңóˡ

ңʲô

ң

˸壬ֱ˸㣬˸ġû£ôôá

ңһһֱԊãֻһ˺ã

ǹ۵ӣÿ춼á

ֱ

С

ǵ׼ͥҺܰ飬迴Сӡ

д¥Ļᣬ跢ˡ˵ԺٸҼСˣ迴ǸСӣ˵

ֻẦҼС

˵¸ҾҪСܸڸصĶӣһˣѾİɣ

һˣ嶯˵һСҸģչһӣٸҵʱ䣡

˵ѾʲôҸҲش

ݺݵñ˸ֱ˸ٱ˸ҿ˵ǮһжҪǮİҪǮ㶮

ңûǮһŬСԿģ

ȣ˸ģֱ˸һٱ˸ҪףҼСͼ޸㣡

޻˵Сһԭط

ҽæ

վͰСѧˣҼСˣĵ绰Ҳͨͨ˽ÿֻͨ䣺ûڷ绰ˡ

ҵСĽ㣬Ҳ˵һҰҸͣҸСţһʼҸϾãȱ˸ֱٱ壬˵ҪҴ㴫ţҵͷֱ˸ֱȸٱȸߣҺɵĿ˵ҵȿDzİһϵеĿ顣

ͨ˿飬ӦæҴŸСˣ̫ˣ

ټഺ

ҵСңɫɣȫǣֻʣһݣҷһ“ǽ”ȥζЩϤĽ䣬СķҵһƬ̣ɱؼңʲô

һ룬ӰƬ㿪ʼţ

СС㲵ң˸ֱٱߣ˵ʱ߶ѣҲҪġһĻˣ˵ƭңһ߿ޣһ߱˸ֿʼֱ˸㣬˸һ˵衣ǡˣȥһԶԶĵطԶˣһűȣ˵費ᡣ˸ġ㡣˼˵Dzҵġֱ˸㡣壬ҪµĨȥôĨõأôˡֱ㡣ٱȸģ˵ҵĐһ㶼ûиı䣬ܸлҡű˸ֱ㡣ٱһлһλáűȣǰ˵ȸ塣ֱȸ㡣ٱһ˵˵ûʸӵа飡

潥ڣٻ֮ǰЦر˸ġȻ˸һ˸㡣

ôҵʧˡ

˲䣬ҵȫʾϨˣҲûСҲûАۡ

ѡĻ

̹ңѡDZȸٱ㡣ҪѡһεĻҲģٰһΡ

Ӵ֮ôҲˣЩȹ֣ʵ˵ǣǶο̹ĵĐ顣

ƪ£սȥഺഺġ˵԰ɣ

ȫ꣡

ðɣҺܸлĿˣʵҺߵһ£ҪԼ HTTP ״̬룬ϣҲסˡ

˭

ðɣʵǣ1989 3 ƶģHTTP 1.1ʱţ HTTP 2.0 Ҳˡ

ijֵ HTTP ״̬룺

200 OK

201

202 ܣȥӰ

203 ˵Non-Authoritative Information

204 û

205

206 ҵ

300 ѡ

301 ð

302 ҵˣ

303 ˵ģ

304 ûиı

305 ʹã㣩ţ

306 ûõ

307 ʱ

400 ֮

401 ʦ׼

402 ҪǮ

403 裩ֹ

404 ûҵѣ

405 ٹУ

406

407 Ҫ֤

408 ʱ

409 ִ

410 ʧ

411 ᰮܾ𣿣ijȣ

412 ףǰ

415 ֧Ԯý

416 Χ޷

417 飩Ԥ

500 ܻңóˡInternal Server Error)

501 ûУˣʵ

502 С (Уš

503 ûٷ

504 СûӦ

ϲ HTTP ״̬ٲ

http://httpstat.us/

http://httpstatus.es/

ǩ

Ȩվ²磬Ȩϵwest999com@outlook.com
رע⣺վת۲վ۵㣬վṩӰƬ廭ƷʹãԭϵȨԭ

һƪHTTP/1.1Э£RFC 2616

һƪNginx vs Apache

Ŵ
űǩ