Matlab webread (or urlread) Cody

Gregory on 14 Sep 2016
Latest activity Reply by Walter Roberson on 13 Jun 2017

Something seems to either have changed with webread/urlread behavior with R2016a or the Cody site has changed its authentication after it's September 2016 upgrade. Now, when ever I make a call using either webread (with weboptions) urlread using "My Cody" url, I get the html that corresponds to an unauthenticated user.
I've tried passing credentials using weboption and also cached the credentials using the built in Matlab browser - neither helped in seeing the authenticated version of this page.
Any help in understanding where the problem/solution lies would be helpful. Easily reproduced by running...
URL = 'https://www.mathworks.com/matlabcentral/cody/players/1261697-gregory/solved';
[Contents Status] = urlread(URL);
Compare this to the source pulled down when authenticated with Chrome (for example, search for the work "two"). FYI: this has worked for a couple of years up until now...
Walter Roberson
Walter Roberson on 13 Jun 2017
Nicholas Fugal: are you familiar with https://support.google.com/accounts/answer/6010255?hl=en ?
Nicholas Fugal
Nicholas Fugal on 12 Jun 2017
I'm having the same problem when trying to fetch data behind Google authentication (e.g. google drive).
Gregory
Gregory on 14 Sep 2016
Fixed - yes, but I wish it was that simple.
Walter Roberson
Walter Roberson on 14 Sep 2016
I suspect that in entering the Question you accidentally missed the quotation marks in your URL assignment.