URL Read Returns Status of 1, but no Data

2 views (last 30 days)
Hello All,
I have been using urlread for quite some time now, however it is not working anymore, and I am struggling to find where it is failing. I am gathering end of day information for a number of stocks from Yahoo Finance. The following code is used:
[temp, s] = urlread(http://ichart.finance.yahoo.com/table.csv?s=ACBFF&a=00&b=01&c=2016&d=03&e=17&f=2017&g=d&ignore=.csv)
After this runs, s returns 1, however temp does not have any data (it has worked for a few weeks up until yesterday).
Does anyone have suggestions, or know of why this error is coming up now?
Thanks for the help,
Carmelo Gonzales
Carmelo Gonzales on 20 Apr 2017
Thanks Octavio for your input! Yes, changing http to https works! Such a simple fix but bugged the hell out of me for a few days!

Sign in to comment.

Accepted Answer

Lukas Mich
Lukas Mich on 19 Apr 2017
Try using https instead of http

More Answers (1)

Carmelo Gonzales
Carmelo Gonzales on 20 Apr 2017
Thanks Lukas - This was the fix!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!