当前位置:网站首页>Win32 API 访问路由的加密网页
Win32 API 访问路由的加密网页
2022-07-04 15:44:00 【全栈程序员站长】
通过WinHttp的WinHttpSetCredentials函数来访问加密网页。
网页的用户名密码加密类型共有五种,分别是:
WINHTTP_AUTH_SCHEME_BASIC | Indicates basic authentication is available. |
|---|---|
WINHTTP_AUTH_SCHEME_NTLM | Indicates NTLM authentication is available. |
WINHTTP_AUTH_SCHEME_PASSPORT | Indicates passport authentication is available. |
WINHTTP_AUTH_SCHEME_DIGEST | Indicates digest authentication is available. |
WINHTTP_AUTH_SCHEME_NEGOTIATE | Selects between NTLM and Kerberos authentication. |
而MSDN中的加密网页示例不包含WINHTTP_AUTH_SCHEME_BASIC类型,而路由中的加密类型恰巧就是这种类型。
在WinHttpSendRequest之前加上WinHttpSetCredentials,就行了。
bResults = WinHttpSetCredentials( hRequest,
WINHTTP_AUTH_TARGET_SERVER,
WINHTTP_AUTH_SCHEME_BASIC,
L"admin",
L"",
NULL );发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/110767.html原文链接:https://javaforall.cn
边栏推荐
- To sort out messy header files, I use include what you use
- 设置窗体透明 隐藏任务栏 与全屏显示
- Electronic pet dog - what is the internal structure?
- 防火墙基础透明模式部署和双机热备
- Firewall basic transparent mode deployment and dual machine hot standby
- Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry
- 【华为HCIA持续更新】SDN与FVC
- 【模板】【luogu P4630】Duathlon 铁人两项(圆方树)
- Is it safe for Anxin securities to open an account online? Is the account opening fee charged
- Analysis of abnormal frequency of minor GC in container environment
猜你喜欢

C# 更加优质的操作MongoDB数据库

What is low code development?

聊聊异步编程的 7 种实现方式
Redis 的内存淘汰策略和过期删除策略的区别

Which domestic cloud management platform manufacturer is good in 2022? Why?

解读数据安全治理能力评估框架2.0,第四批DSG评估征集中

Load test practice of pingcode performance test

To sort out messy header files, I use include what you use

【Unity UGUI】ScrollRect 动态缩放格子大小,自动定位到中间的格子

2022PMP考试基本情况详情了解
随机推荐
C# 服务器日志模块
R语言plotly可视化:plotly可视化多分类变量小提琴图(multiple variable violin plot in R with plotly)
Go micro tutorial - Chapter 2 go micro V3 using gin and etcd
Congratulations to Mr. Zhang Pengfei, chief data scientist of artefact, for winning the campaign Asia tech MVP 2022
S2b2b solution for lighting industry: efficiently enable the industrial supply chain and improve the economic benefits of enterprises
R language plot visualization: plot visualization of multiple variable violin plot in R with plot
shell脚本的替换功能实现
Summary of tx.origin security issues
被PMP考试“折磨”出来的考试心得,值得你一览
Interpretation of data security governance capability evaluation framework 2.0, the fourth batch of DSG evaluation collection
What is low code development?
[HCIA continuous update] overview of WLAN workflow
[Acwing] 58周赛 4489. 最长子序列
Two methods of MD5 encryption
一文掌握数仓中auto analyze的使用
码农版隐秘的角落:作为开发者最讨厌的5件
斑马识别成狗,AI犯错的原因被斯坦福找到了丨开源
The test experience "tortured" by the PMP test is worth your review
PyTorch深度学习快速入门教程
leetcode:421. 数组中两个数的最大异或值