相关疑难解决方法(0)

具有 HTTP 标头受控排序的 Python HTTP 请求

我正在用 python 编写一个连接到 Restful Web 服务的客户端接口,不幸的是,该 Web 服务需要请求中存在自定义标头。我一直在使用 Requests 来实现此目的,但是 Web 服务还要求标头在请求中按特定顺序排列。我无法弄清楚请求如何对标头进行排序,并查看是否有办法能够控制此排序。

如果有人有建议,我也愿意在我的应用程序中使用除请求之外的其他模块。

python rest http webservices-client

7
推荐指数
1
解决办法
5408
查看次数

Python's requests triggers Cloudflare's security while accessing etherscan.io

I am trying to parse/scrape https://etherscan.io/tokens website using requests in Python but I get the following error:

etherscan.io

Checking if the site connection is secure

etherscan.io needs to review the security of your connection before proceeding. Ray ID: 73b56fc71bc276ed Performance & security by Cloudflare

Now, I found a solution here: /sf/answers/4388117331/ but when I try to use this solution, I am still not being able to read the actual content of the website and getting a different error stated below. …

python ssl python-3.x python-requests

6
推荐指数
1
解决办法
7659
查看次数