????HTTP???(HTTP Response)
??????Web?????????HTTP?????????????????????Щ????(??Щ?????????????????????????????Asp.net??PHP??Jsp????????д??????)?????????????HTTP?????HTTP???????????????HTTP???????????????????????:
????1.????
????2.HTTP?
????3.????????
???????????????У?????????HTTP??????:
????HTTP/1.1 200 OK
?????????????HTTP?汾??????????????????????????????????????????????????????????????????????
????????HTTP?汾???????????????????????£????????????????HTTP?????????????嶼?н?????????????·???
?????????(100-199)
??????????(200-299)
???????????(300-399)
??????????????(400-499)
??????????????(500-599)
????HTTP????а??????????1.????(response header)2.????(general header)3.????(entity header)??
????????????HTTP?????????HTTP???????????????????????????????HTML????????????????????????????HTTP Response???5?????


?????5.????????HTTP???

?????5?е?????????HTML?????????????????????????????????6?????


?????6.HTTP???????????

??????????????????????HTTP????????????????HTML???????????????????????????????????????????????д????
???????????y???????????(Media Type)????????????Content-Type???HTTP????????5????text/html???6??image/jpeg??
????y????????????????/С??????5?е?html??С????text?????
????IANA(The Internet Assigned Numbers Authority??????????????????)??????8???????y????????????:
????application—(????:application/vnd.ms-excel.)
????audio(????:audio/mpeg.)
????image(????:image/png.)
????message(???磬:message/http.)
????model(????:model/vrml.)
????multipart(????:multipart/form-data.)
????text(????:text/html.)
????video(????:video/quicktime.)
????HTTP?
????HTTP??????????????????????????Aspx?м??????:
????Response.AddHeader(“?????”??”?????”);
??????????????????fiddler???????????7?????


?????7.HTTP?

?????????????HTTP?????????????????????????????????????????????????Щ??????????????????????W3C???????????????????????????????????????????????????????????д????????????????????????????κ????????Ч???Ц
???????????????HTTP?????W3C???????????????????????y???????????????HTTP???????????????????????????????Bing??HTTP??????????????????????????
????????(General header)
???????????????????HTTP?????У???????????HTTP????С?????????????????HTTPЭ?鱾???????????HTTP??????????Connection???HTTP?????????Date???????HTTP????TCP????????Keep-Alive??????????????Cache-Control????
????????(Entity header)
????????????Щ????HTTP??????????????????HTTP POST???????????У???????????HTTP????С??????5???6?е?Content-Type??Content-length??????????????????С???????????????????????????????????Content-Language??Content-MD5??Content-Encoding?????????建???Expires??Last-Modifies????
?????????(HTTP Request Header)
?????????????Щ??????????????????????????????????????????????????????????HTTP?????С?????????????????????????????Accept???????Cookies??Cookie?????????????????HOST???????????If-Match??If-Match-Since??If-None-Match?????????HTTP???????в????????Range??????????HTML????????????Referer????
????????(HTTP Response Header)
????HTTP????????Щ????HTTP????????????????沢??????????HTTP????е??????????HTTP??????????????????????????????????μ?Refresh?????????503?????????????Retry-After?????????????????Server???????COOKIE??Set-Cookie??????????????????????Accept-Ranges????
??????????
?????????????????????HTTPЭ???????????????ζ????????HTTP??????????????????????????????????????????????????????????????????????????????????????????Щ????????????÷??????????????????????????????????????????????8?????


?????8.?????????????????1??????2?????????????

???????Cookies??????
????????????????HTTPЭ?????Cookies???????????????8?е???????????Cookies????????????????????9?????


?????9.???Cookies????????????????????????2??????1?????????????

????????????????????
????????Cookies????????????????????????????????Asp.net????????ViewState??Input=“hidden”?????????????????:
????<input type="hidden"name="__VIEWSTATE"id="__VIEWSTATE"value="/wEPDwUKMjA0OTM4MTAwNGRkXUfhlDv1Cs7/qhBlyZROCzlvf5U="/>
???????????Cookies???С????????????????????????????????????????
???????QueryString??????
???????????????????????????????????????QueryString?????????????????????????β????????????????????????????????????????QueryString????:
????www.xxx.com/xxx.aspx?var1=value&var2=value2
???????
????????????????????????HTTPЭ?飬????HTTPЭ???е???????????????????HTTP?????????????????????????HTTP?????????????Bing??ο?????鼮