- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何修复(不是解决方法)Octave(假设与 Octave 捆绑的 libcurl)urlread 导致无法使用给定的 CA 证书对对等证书进行身份验证?
已阅读 pkg install from forge in windows ,看起来 Octave 维护者已经意识到 Octave 4.0 的问题,但似乎没有可用的修复程序。
看起来 Windows 上 Octave 的 urlread 不适用于 HTTPS,因为诸如 https://octave.sourceforge.io 的服务器证书无法使用 urlread(似乎调用curl)引用的受信任证书进行身份验证。
例如,尝试运行pkg install -forge时,share\octave\4.2.0\m\pkg\private\get_forge_pkg.m 第 64 行会导致问题 安装软件包。
## Try get the list of all packages.
[html, succ] = urlread ("http://packages.octave.org/list_packages.php");
if (! succ)
error ("get_forge_pkg: could not read URL, please verify internet connection");
endif
从命令窗口运行 urlread 显示以下错误。
>> [html, status, msg] = urlread ("http://packages.octave.org/list_packages.php");
>> msg
msg = Peer certificate cannot be authenticated with given CA certificates
尝试通过 HTTPS 访问 google.com,结果相同。
>> [html, status, msg] = urlread ("https://google.com");
>> msg
msg = Peer certificate cannot be authenticated with given CA certificates
IE 和 Google Chrome 根证书可以验证 sourceforge 证书。
尝试了如下系统。
#[html, succ] = urlread ("http://packages.octave.org/list_packages.php");
sURLLink="https://octave.sourceforge.io/list_packages.php"
command=['curl --insecure ','"',sURLLink,'"'];
[succ, html] = system(command)
#if (! succ)
if (succ != 0)
error ("get_forge_pkg: could not read URL, please verify internet connection");
endif
但是它导致了另一个错误。
>> pkg install -forge symbolic
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 559 100 559 0 0 389 0 0:00:01 0:00:01 --:--:-- 393
sURLLink = https://octave.sourceforge.io/list_packages.php
succ = 0
html = bim
bsltl
cgi
....
error: get_forge_pkg: package NAME exists, but index page not available
error: called from
get_forge_pkg at line 74 column 7
get_forge_download at line 26 column 12
pkg at line 382 column 29
最佳答案
http://packages.octave.org/list_packages.php
返回的303响应。如果您使用 -L,您会发现它会将您重定向到 HTTPS://URL 两次 - 只是为了让您被迫修复情况 (1)。关于https - 修复了 Octave urlread 导致无法使用给定 CA 证书对对等证书进行身份验证的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41687341/
我正在尝试使用 MATLAB 中的 urlread() 函数抓取网页,但我遇到了一个以前从未见过的问题。当我运行代码时 X = urlread('http://espn.go.com/mens-col
我正在使用 Windows 版 Octave 4.0.0,并且想要从向所有公众开放的网页下载股票价格。我使用以下调用: data = urlread(https://www.netfonds.no/q
我正在matlab中使用计时器函数来连续执行某个脚本。在此脚本中,我使用 urlread 从 Web 服务检索数据,这就像一个魅力。 我现在尝试使用urlread在此脚本中执行一个简单的http请求,
我想使用 face.com 人脸检测 API(将图像发送到服务器并返回一个 xml 字符串结果)。 我用 urlread()并且它无法上传图像文件。 编码: fid = fopen('T000.jpg
我正在使用 MATLAB 的 urlread 访问内部数据库命令,一切正常,直到将服务移至安全服务器(即使用 HTTPS 地址而不是 HTTP 地址)。现在 urlread 不再成功检索结果。它给出了
问题 如何修复(不是解决方法)Octave(假设与 Octave 捆绑的 libcurl)urlread 导致无法使用给定的 CA 证书对对等证书进行身份验证? 已阅读 pkg install fro
当我使用 Cygwin 中安装的 Octave 3.8.1 时,我可以成功下载 https 页面,如下所示: urlwrite('https://www.google.com', 'downloade
从 this question 开始,关于使用最初隐藏在 Javascript 函数后面的 Matlab 访问网页上的 PDF。我现在有一个允许我直接访问页面的 URL,使用 Matlab webro
我是一名优秀的程序员,十分优秀!