Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: how to urlread a redirect
Posted:
Mar 25, 2012 3:04 PM
|
|
I realize this is a bit of an old post, but just in case someone else stumbles upon it ...
I've written a FEX submission which should handle this case. By default (as of this writing) it follows those redirects for you so that you only see the final site. http://www.mathworks.com/matlabcentral/fileexchange/35693-urlread2
Redirects happen in at least three ways: 1) Via the server using a 3xx status code. The FEX submission handles this case and this is what is happening in your case. 2) Via a redirect instruction in a meta tag 3) Via javascript that changes the windows location
The last two require a lot more work since you need to process the text that is sent back to you. Hopefully this helps someone ...
Jim
|
|
|
|