title: Grabbing a .jsp generated PNG in Python
body: <p>I am trying to grab a PNG image which is being dynamically generated with <code>JSP</code> in a web service.</p>
  
  <p>I have tried visiting the web page it is contained in and grabbing the image <code>src</code> attribute; but the link leads to a <code>.jsp</code> file. Reading the response with <code>urllib2</code> just shows a lot of gibberish.</p>
  
  <p>I also need to do this while logged into the web service in question, using <code>mechanize.</code> This seems to exclude the option of grabbing a screenshot with <code>webkit2png</code> or similar. </p>
  
  <p>Thanks for any suggestions.</p>