Why are the md5 values the same? when using httpx as sdk. #1685
-
I am using httpx as sdk, below is my test code.
After running, the output is as follows:
Notice that the body md5 of www.hackerone.com and docs.projectdiscovery.io is: d41d8cd98f00b204e9800998ecf8427e. This is very unreasonable, because it is obvious that the md5 of the two websites should be inconsistent. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This md5 is the hash value of the empty string. Now the question becomes why body is empty. |
Beta Was this translation helpful? Give feedback.
-
After some source code analysis, I found that there is a configuration item named: h.Options.MaxResponseBodySizeToRead in httpx/common/httpx/httpx.go.
Set The configuration item corresponding to cli should be
Now this problem is solved.
|
Beta Was this translation helpful? Give feedback.
After some source code analysis, I found that there is a configuration item named: h.Options.MaxResponseBodySizeToRead in httpx/common/httpx/httpx.go.
Set
MaxResponseBodySizeToRead: 2147483647,
The configuration item corresponding to cli should be
Now this problem is solved.