HTTP请求

上一篇 / 下一篇  2017-06-30 14:35:28 / 个人分类:概念、例子

HTTP请求,包含request header和body
request header:
accept请求头用来告知客户端可以处理的内容类型
connection:keep alive(keep alive是基于web socket协议的长连接)
  1. Accept:
    */*
  2. Accept-Encoding:
    gzip, deflate
  3. Accept-Language:
    en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
  4. Content-Length:
    38153
  5. Content-Type:
    multipart/form-data; boundary=----------Ef1ae0gL6ei4ei4KM7gL6Ij5ei4KM7
  6. Cookie:
    UM_distinctid=15b12e8cf62138-08506aa2cabbca-5e4f2b18-140000-15b12e8cf63419; xscdb_cookietime=2592000; xscdb_auth=f3c6EkJMGswxfzwD6KkcbWN47m7rkqz%2FCKtDurQCZwEx1qpMfAnFzLq34EZVjAAhwJrhXUI3YGtg7V3zUoGXoqVoHAQTbYg; xscdb_supe_refresh_items=0_u15065542_3715600_3719086_3719114_813404_877357_99061_3719161_3719164_3719252_3719309_3717789; looyu_id=072a683074df81452b0f9f65b36b04ff42_20001818%3A12; __utmt=1; xscdb_supe_hash=3ca497BcSgrRXYHiPNy4rygL%2Fi46puVG0fGm3yxE1kHnitaQ4EgC7WBVqjY; Hm_lvt_e50ce2796571e3c3696c82ad79779b15=1496631988,1497598102,1497854168,1498121350; Hm_lpvt_e50ce2796571e3c3696c82ad79779b15=1498804253; __utma=24129278.282992756.1495608079.1498726574.1498803065.30; __utmb=24129278.3.10.1498803065; __utmc=24129278; __utmz=24129278.1498121356.23.2.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; looyu_20001818=v%3Ab179649a9718a72333e45be6cd72e0fe36%2Cref%3A%2Cr%3A%2Cmon%3Ahttp%3A//m2425.looyu.com/monitor%2Cp0%3Ahttp%253A//www.51testing.com/article_windows.htm; _99_mon=%5B0%2C0%2C0%5D
  7. Host:
    u.51testing.com
  8. Origin:
    http://bbs.51testing.com
  9. Proxy-Connection:
    keep-alive
  10. Referer:
    http://bbs.51testing.com/home.php?mod=spacecp&ac=avatar
  11. User-Agent:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
  12. X-Requested-With:
    ShockwaveFlash/26.0.0.131
content-type用于指定资源的MIME类型。常见的MIME类型有application/octet-stream(for binary file), text/plain(for textual files),multipart/form-data. refer page:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

request body:
封装请求参数

response header:
Date"Fri, 30 Jun 2017 05:48:22 GMT"
Server"WSGIServer/0.1 Python/2.7.13"
Vary"Cookie"
x-frame-options"SAMEORIGIN"
Content-Type"text/html; charset=utf-8"




















TAG:

 

评分:0

我来说两句

Open Toolbar