tags:

views:

104

answers:

1

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);

but get the error

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

If I substitute https to http, it works, but I get "301 Moved Permanently" page with the above https-link.

The link in browser works properly in both cases (redirecting http request). The site does not require any authentication.

May be there are other ways than urlread?

+1  A: 

Sorry, I found the answer on SO:

http://stackoverflow.com/questions/1638275/handling-an-invalid-security-certificate-using-matlabs-urlread-command

Will test and remove if needed.

UPDATE:

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

yuk