title: How to parse a cookie string
body: <p>I would like to take a Cookie string (as it might be returned in a Set-Cookie header) and be able to easily modify parts of it, specifically the expiration date.</p>
  
  <p>I see there are several different Cookie classes, such as BasicClientCookie, available but I don't see any easy way to parse the string into one of those objects.</p>
  
  <p>I see in api level 9 they added <a href="http://developer.android.com/reference/java/net/HttpCookie.html" rel="noreferrer">HttpCookie</a> which has a parse method, but I need something to work in previous versions.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>