MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   从HTTPS将数据导入MATLAB (https://www.labfans.com/bbs/showthread.php?t=23294)

poster 2019-12-10 20:30

从HTTPS将数据导入MATLAB
 
有人知道这是否可能吗?

我正在尝试通过使用以下代码来获取数据

url = '[url]https://cgwb.nci.nih.gov/cgi-bin/hgTracks';[/url] params = {'org','Human','db','hg18','position','EGFR'}; urltxt = urlread(url,'get',params); 但是得到错误

??? Error using ==> urlread at 111 Error downloading URL. Your network connection may be down or your proxy settings improperly configured. 如果我将https替换为http,则可以使用,但上面的https链接显示“ 301永久移动”页面。

在两种情况下(重定向http请求),浏览器中的链接均能正常工作。该站点不需要任何身份验证。

除urlread之外,可能还有其他方法吗?



[B]回答:[/B]

抱歉,我找到了答案:

[URL="https://stackoverflow.com/questions/1638275/handling-an-invalid-security-certificate-using-matlabs-urlread-command"]使用MATLAB的urlread命令处理无效的安全证书[/URL]

如果需要,将进行测试并删除。

[B]更新: [/B]

真的行。您认为我应该删除问题吗?



[url=https://stackoverflow.com/questions/2610550]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 02:58

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.