惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

行迹小栈

英语十大词法汇总 - 行迹小栈 保定市林草生态园 - 行迹小栈 【北京】-八达岭长城 - 行迹小栈 【北京】-颐和园 - 行迹小栈 【上海】 - 行迹小栈 【唐山市】河头老街-唐山宴-唐山地震博物馆 - 行迹小栈 【天津】 - 行迹小栈 【北京】-天安门 - 行迹小栈 【张家口】-蔚县 - 行迹小栈 🐍 Python ORM 技术选型指南: SQLAlchemy 与 SQLModel - 行迹小栈 Mysql查询:每个重复数据,只显示一条 - 行迹小栈 python提取excel中的超链接 - 行迹小栈 CentOS7通过rpm安装docker和docker compose - 行迹小栈 centos7 初始化脚本 - 行迹小栈 Vmware centos7 配置静态网络 - 行迹小栈 我的瘢痕疙瘩治疗过程记录 - 行迹小栈 关于瘢痕疙瘩-为什么-治疗方案-如何预防 - 行迹小栈 javascript基础教程 - 行迹小栈 python使用subprocess配合node.js执行js代码 - 行迹小栈
Requests verify=False 报错:InsecureRequestWarning: Unverified HTTPS request is being made to host - 行迹小栈
行迹小栈 · 2025-08-19 · via 行迹小栈

requests请求时设置了 verify=False 不验证证书,运行时控制台会打印出警告,如何关闭警告?

添加以下代码即可

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

完整代码

import requests
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

r = requests.get('https://hilxy.com', verify=False)
print(r.status_code)
print(response.text)