小编Sun*_*uni的帖子

导致此错误的 HTTPX 和 python 中的 requests 模块有什么区别

没什么好说的,我正在向某个网址发送请求。一台 HTTP 客户端返回 403,一台成功。标头没有区别。还有什么不同?

>>> print(httpx.get(url).status_code)
200
>>> print(requests.get(url).status_code)
403
Run Code Online (Sandbox Code Playgroud)

python http python-requests

11
推荐指数
1
解决办法
9526
查看次数

标签 统计

http ×1

python ×1

python-requests ×1