Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit b9d6906

Browse files
committed
Update Documentation
更新http第5个返回值说明
1 parent 21fa800 commit b9d6906

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,26 @@ $ pip install -i https://pypi.python.org/pypi hackhttp
8282

8383
HTTP 响应体,类型为 String
8484

85-
* **redirect**
85+
* **redirect_url**
8686

8787
遇到 HTTP 302 后的跳转地址,如果无跳转则为请求的地址,类型为 String
8888

89+
* **log**
90+
91+
HTTP 日志信息,类型为 dict
92+
93+
* url
94+
95+
本次请求的第一个 URL 地址
96+
97+
* request
98+
99+
HTTP 请求报文
100+
101+
* response
102+
103+
HTTP 响应报文
104+
89105

90106
### 详细说明
91107

@@ -292,13 +308,16 @@ User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
292308
```
293309
或者将 cookie 直接加入到 HTTP Header 中,具体参考 [自定义请求头](#headers)
294310

311+
**注意:如果在创建 hackhttp 实例时指定 `cookie_str`,那么在此实例销毁之前,通过该实例创建的 http 请求中都会携带该 cookie**
295312

296313
#### 爬虫示例:抓取乌云所有漏洞<div id="wooyunspider"></div>
297314

298315
测试用例 `test/` 目录下提供了一个爬虫,使用 hackhttp 爬取乌云所有公开漏洞:
299316

300317
[Wooyun Spider](test/wooyun_spider.py)
301318

319+
> 需要自行安装 `thread_pool` 第三方库
320+
302321
使用:
303322

304323
```

0 commit comments

Comments
 (0)