title: How to handle cookies like a web browser using App Engine url fetch service?
body: <p>I have seen many questions about using cookies with url fetch on App Engine, but many people doing it incorrectly, and no confirmed-as-working solutions on Java App Engine.</p>
  
  <p>All I want to do is:</p>
  
  <ol>
  <li>Make one request</li>
  <li>Get the cookies from that request.</li>
  <li>Make a second request, with those cookies.</li>
  </ol>
  
  <p>How hard can it be??</p>
  
  <p>This is easy to do on the dev server, because the dev server copies cookies across requests automatically - and indeed it's impossible to stop it doing this. But the real App Engine urlfetch service does <em>not</em> do this.</p>