title: python's requests do not handle cookies correctly?
body: <p>I have problem with simple authorization and upload API script.</p>
  
  <p>When authorized, client receives several cookies, including PHPSESSID cookie (in browser).</p>
  
  <p>I use <code>requests.post</code> method with form data for authorization:</p>
  
  <pre><code>r = requests.post(url, headers = self.headers, data = formData)
  self.cookies = requests.utils.dict_from_cookieja(r.cookies)
  </code></pre>
  
  <p>Headers are used for custom <code>User-Agent</code> only.</p>
  
  <p>Authorization is 100% fine (there is a logout link on the page).
  Later, i try to upload data using the authorized session cookies:</p>
  
  <pre><code>r = requests.post(url, files = files, data = formData, headers = self.headers, cookies = self.cookies)
  </code></pre>
  
  <p>But site rejects the request. If we compare the requests from script and google chrome (using Wireshark), there is no differences in request body.</p>
  
  <p>Only difference is that <strong>2</strong> cookies sent by requests class, while google chrome sends <strong>7</strong>.</p>
  
  <p><strong>Update</strong>: Double checked, first request receives 7 cookies. post method just ignore half...</p>