Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to urlread a redirect
Replies: 1   Last Post: Mar 25, 2012 3:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jim Hokanson

Posts: 14
Registered: 1/27/11
Re: how to urlread a redirect
Posted: Mar 25, 2012 3:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.