accept and content-type http headers

accept  //request-header, 告诉服务器,客户端接受什么格式

content-type  //描述request(post,put)或response的格式,

If-Modified-Since/If-None-Match

If-Match

301  //永久重定向,搜索引擎会替换就的网址抓取新的内容

302  //暂时重定向,搜索引擎会保留旧的网址抓取新的内容, response header 会有location,浏览器收到302 response 后会向location发get请求

307  //重定向时会根据原始的请求get或post

Same Origin Policy

脚本的源取决于他的加载页面而不是存储地址

Origin //请求来源

Connection:keep-alive  //长连接

端口不同:

cookie可以共享

ajax需要跨域

url:http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

url:http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4

CORS规范:http://www.cnblogs.com/artech/p/cors-4-asp-net-web-api-02.html

原文地址:https://www.cnblogs.com/yfann/p/4613084.html