ada*_*n11 2 python python-requests python-requests-html
这可能是一个愚蠢的问题,但我只想确认以下内容。
我目前正在 python 中使用 requests 库。我使用它来调用托管在 Azure 云上的外部 API。
如果我使用虚拟机中的请求库,并且请求库发送到 URL:https : //api-management-example/run,这是否意味着我与此 API 的通信以及我发送的整个有效负载安全吗?我在虚拟环境中的 Python 站点包中看到,有一个 cacert.pem 文件。我需要更新吗?我是否需要做其他事情来确保通信安全,或者我调用 HTTPS URL 就意味着它是安全的?
任何信息/指导将不胜感激。
谢谢,
import requests
response = requests.get("https://api-management-example/run", verify=True)
Run Code Online (Sandbox Code Playgroud)
import requests
response = requests.get("https://api-management-example/run", verify="/path/to/local/certificate/file/")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7706 次 |
| 最近记录: |