title: Using wget in conjunction with an OpenID Login
body: <p>I have a (legit) edge case where I would like to download a web page using any command line tool, but the web page needs an OpenID login to show the content I need.</p>
  
  <p><code>wget</code> supports <a href="http://www.gnu.org/software/wget/manual/wget.html" rel="nofollow">basic auth and FTP</a>, but I can't think of a sane way to use it in conjuction with an OpenID login. The only way I can think of</p>
  
  <ul>
  <li>Perform an OpenID login using <code>wget</code> </li>
  <li>Somehow store the resulting session cookie </li>
  <li>Try to fetch the page using another <code>wget</code> call, and <code>--load-cookies</code> the cookies from the last call</li>
  </ul>
  
  <p>this seems complex to build, though, as IIRC the OpenID login process is not entirely as straightforward as your plain old web site login. Does anyone either</p>
  
  <ul>
  <li>know a less complex way (performing the OpenID login manually somewhere else would be completely acceptable) </li>
  <li>know a ready-made implementation of what I describe above? I'm keen on avoiding having to build this from scratch if at all possible.</li>
  </ul>
  
  <p>Other inspirations are welcome as well.  </p>
  
  <p>I can work either on Linux or on Windows. Linux would be preferred from an infrastructure point of view but either platform is fine.</p>