Getting data in MATLAB with HTTPS

Does anyone know if this is possible?

I am trying to get data 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);

      

but get error

??? Error using ==> urlread at 111
Error downloading URL. Your network connection may be down or your proxy settings improperly configured.

      

If I replace https with http, it works, but I get a "301 Moved Permanentently" page with the above https link.

In both cases, the link in the browser works correctly (redirecting an HTTP request). The site does not require authentication.

Could there be other ways besides urlread?

+2


source to share


1 answer


Sorry, I found the answer on SO:

Handle Invalid Security Certificate Using MATLAB URL Command

Check and delete if necessary.



UPDATE:

It really works. Do you think I should delete the question?

+3


source







All Articles