从HTTPS获取数据到MATLAB [英] Getting data into MATLAB from HTTPS
本文介绍了从HTTPS获取数据到MATLAB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道是否有可能吗?
Anybody know if it's possible?
我正在尝试使用以下代码获取数据
I'm trying to get the data by using the following code
url = 'https://cgwb.nci.nih.gov/cgi-bin/hgTracks';
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,它可以工作,但我得到301 Moved Permanently页面以上https-link。
If I substitute https to http, it works, but I get "301 Moved Permanently" page with the above https-link.
浏览器中的链接在两种情况下都能正常工作(重定向http请求)。该网站不需要任何身份验证。
The link in browser works properly in both cases (redirecting http request). The site does not require any authentication.
除了urlread之外还有其他方法吗?
May be there are other ways than urlread?
推荐答案
抱歉,我在SO上找到了答案:
Sorry, I found the answer on SO:
将测试并删除if需要。
Will test and remove if needed.
确实有效。你认为我应该删除这个问题吗?
It really works. DO you think I should delete the question?
这篇关于从HTTPS获取数据到MATLAB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文