title: Use Matlab to Login to Webpage and Download File
body: <p>Using Matlab, I'm trying to download a file from a website that requires you to login first.  The file I'm trying to download is <a href="http://www.standardandpoors.com/prot/spf/docs/indices/SPUSA-500-USDUF--P-US-L--Constituents.xls" rel="nofollow">here</a> (http://www.standardandpoors.com/prot/spf/docs/indices/SPUSA-500-USDUF--P-US-L--Constituents.xls)</p>
  
  <p>I'm guessing this involves cookies and hacking into the java code in the urlwrite function.  Has anybody done this or does anybody have ideas on how I get started?  Is there some standard way to login and get a cookie, and then pass the cookie back with future requests?</p>