我有这个问题:
我想在 GET 请求中以小写形式发送 HEX 文字 (CRLF),因为如果我以大写形式发送,我的服务器不接受请求,因此绝对有必要以小写形式发送。
我明白了:
url1 = f'{url}/{path}%20HTTP/1.1%0d%0aHost:%20{host}%0d%0a%0d%0a'
我试过这个:
url0 = f'{url}/{path}%20HTTP/1.1'+%0d%0a'.lower()+'Host:%20{host}'+'%0d%0a%0d%0a'.lower()
但是....请求是这样的:
%20HTTP/1.1%0D%0AHost:%20example.com%0D%0A%0D%0A
我使用 Web 代理 (BurpSuite) 来查看请求。
发送请求我使用请求库。