苏飞论坛
标题:
get一个简单的网页,https就报错http就没事
[打印本页]
作者:
onlywork
时间:
2024-6-17 16:32
标题:
get一个简单的网页,https就报错http就没事
本帖最后由 onlywork 于 2024-6-17 16:33 编辑
很简单的网页,假如网页是example.com,request的url如果直接就是example.com不行,报错,https://example.com报错,说“无法创建 SSL/TLS 安全通道”,只有url是“http://example.com”才行,chrome里面访问3种网址显示都一样。环境是window10 64位,dotnet2010 ,framework有点奇怪,安装.net2010时给装的4.0框架,出问题后查询有的说更新框架,更新了4.6 4.7 4.8,.net里看项目属性,目标框架是.net framework4,用命令行
reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP" /s,
查看 显示以下结果:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\Windows Workflow Foundation\Debugger ControllerConduitTypeName REG_SZ Microsoft.Workflow.DebugEngine.ControllerConduit, Microsoft.Workflow.DebugController, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
ExpressionEvaluationFrameTypeName REG_SZ Microsoft.Workflow.DebugEngine.ExpressionEvaluationFrame, Microsoft.Workflow.ExpressionEvaluation, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\WINDOWS\Microsoft.NET\Framework64\v3.5\
SP REG_DWORD 0x1
Version REG_SZ 3.5.30729.4926
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5\2052
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
SP REG_DWORD 0x1
Version REG_SZ 3.5.30729.5003
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client\1033
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client\2052
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full\1033
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full\2052
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x8234d
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.09037
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0
(默认) REG_SZ deprecated
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0\Client
Install REG_DWORD 0x1
Version REG_SZ 4.0.0.0
大神能帮看一下原因吗?
另外,如果我网页通过手机号接受验证码登录成功,也找到cookie,vs2010里面ctrl+F5弹出的同样的网页,如果不在程序中写入cookie是不是也是自动带入当时的cookie的呢?
作者:
合久必婚
时间:
2024-8-15 18:21
肯定不行的。需要把网址写完整。另外,网页的cookie不会自动带入程序的。
欢迎光临 苏飞论坛 (http://www.sufeinet.com/)
Powered by Discuz! X3.4