前端 html css js jquery android ios 微信/微博
服务器端 web层 Service层 dao层 数据库
jsp+servlet+fileter spring jdbc DBUtil jdbc+sql
struts springMVC hibernate mybatis
客户端访问服务器资源 http协议
http协议
xieyi:约束A,B双方行为的规则
表单必须有name属性才能传到后台
请求行 请求类型 请求资源 版本号
抓包 httpwatch 火狐自带
请求头
传输过程:
压缩 Accept-Encoding:gzip 解压 告诉服务器能接受的解压格式
connection:keep-alive 长连接
user-agent:通过哪个浏览器访问
cookie:客户端缓存
请求体 post请求的参数
常见状态吗:
200正常
302:重定向
304拿本地缓存
404路径错误(没有该资源)
500服务器错误
If-Last-Modified:本地文件最后一次修改时间 请求头
Last-Modified:资源最后一次修改的时间 响应头:服务器响应给客户端的数据
304出现的原因:
if和last成对使用,比较两个时间,如果相等,服务器会返回304,让客户端去拿本地缓存
响应头
location
cntent-type 响应内容的类型
content-disposition 关于下载的
set-cookie
响应体:页面要显示的正文