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

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - James.Ying

《觉醒时刻:AI Agent引爆企业效率革命》第二章 《觉醒时刻:AI Agent引爆企业效率革命》第一章 win11 安装openclaw问题 Openclaw 配置可局域网访问 一步步清理CentOS下的Docker的占用空间 把docker镜像和数据迁移到新的硬盘 Linux环境下,使用Jenkins构建docker容器,提示权限不足的问题 花了2天时间,把量化平台的回测从本地放到了在线 平民化量化平台-刚米量化 Asp.NetCore利用缓存使用AOP方式防止重复提交 Python量化-如何获取实时股票信息 Python中字典的常用方法 .Net Core 中使用工厂模式 量化交易之网格情缘 记录一些笔试题 我都xxx岁了,还能继续做开发吗? 飞机歌 抛开2020,我来了,2021!! 复制DllImport用的Dll文件到项目输出目录 Abp vNext 切换MySql数据库 Asp.Net Core SignalR 用泛型Hub优雅的调用前端方法及传参 - James.Ying
.Net Core HttpClient 忽略https证书提醒
James.Ying · 2018-12-07 · via 博客园 - James.Ying

在测试中经常会遇到请求一些https的url,但又没有本地证书,这时候可以用下面的方法忽略警告

    var httpclientHandler = new HttpClientHandler();
    httpclientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, error) => true;
    var httpClient = new HttpClient(httpclientHandler);

邮箱:james@taogame.com
QQ:785418
微信:jamesying1
QQ群:376248054 通关:cnblogs
技术改变生活,技术改变人生!用技术来创造价值,拥有技术,不仅仅是开发,您将获得更多!如果您觉得我能帮到您,您可以通过扫描下面二维码来【捐助】我!