title: how to get the cookies from a php curl into a variable
body: <p>So some guy at some other company thought it would be awesome if instead of using soap or xml-rpc or rest or any other reasonable communication protocol he just embedded all of his response as cookies in the header.</p>
  
  <p>I need to pull these cookies out as hopefully an array from this curl response.  If I have to waste a bunch of my life writing a parser for this I will be very unhappy.</p>
  
  <p>Does anyone know how this can simply be done, preferably without writing anything to a file?</p>
  
  <p>I will be very grateful if anyone can help me out with this.</p>