Http请求与响应

Http请求
1、方法-URI-协议/版本;
2、请求头信息;
3、请求正文;

Http响应
1、协议-状态码-描述;
2、响应头信息;
3、响应正文;

HttpServletResponse
--回的ContentType类型
http://ewf-momo.iteye.com/blog/1902634
--Java中都通用文件下载(ContentType、文件头、response、out四步骤)
https://www.cnblogs.com/leihenqianshang/articles/3937579.html

Web服务器
--http 百度百科
https://baike.baidu.com/item/http/243074?fr=aladdin
--http协议学习系列
http://www.blogjava.net/zjusuyong/articles/304788.html

Http响应状态码;
https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

MIME type文件类型:
http://www.w3school.com.cn/media/media_mimeref.asp

Timeout:
---- HTTP请求时候总是设置的两个参数ConnectionTimeOut和SocketTimeOut
http://www.cnblogs.com/hym-pcitc/p/5681192.html

---- HTTP请求时connectionRequestTimeout 、connectionTimeout、socketTimeout三个超时时间的含义
http://blog.csdn.net/wangjin890620/article/details/54630219

猜你喜欢

转载自franciswmf.iteye.com/blog/2390833