Charles在windows上抓取本地python的 request请求

首先打开charles,在Proxy中打开Windows Proxy,这样才能抓取本地请求

 python代码中报错Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)')

 原因是 

Python requests 设置verify=False移除SSL认证

加上之后还需要

解决InsecureRequestWarning警告。

urllib3.disable_warnings()

 

原文地址:https://www.cnblogs.com/LtTest/p/12092122.html