2.http协议:用户代理,状态码,请求头等

#User Agent 用户代理,用于用户识别
#http状态码301和303为重定向.301为Moved Permanently(永久移动),303 See Other(查看其他),Temporary Redirect(临时重定向)
#http状态码401和403. 401 Unauthorized 未授权 ,403 Forbidden 拒绝访问
#请求头内容:User Agent, Cookie, Accept, Accept-Encoding, Accept-Language, Referer,
#http网址请求方式:GET, POST, PUT, DELETE, HEAD 等等
#网站 httpbin这能测试 HTTP 请求和响应的各种信息,比如 cookie、ip、headers 和登录验证等,且支持 GET、POST 等多种方法,对 web 开发和测试很有帮助。它用 Python + Flask 编写,是一个开源项目。
# 官方网站:http://httpbin.org/  开源地址:
#例: curl -X POST https://httpbin.org/post

你可能感兴趣的:(2.http协议:用户代理,状态码,请求头等)