title: Send Cookie Using Python Requests
body: <p>I am trying to scrape some data (reproduce a POST operation I did in a browser) by using Python Requests library. Expecting it will return the content I saw while using browser by copying the <code>request header</code> and <code>post form</code>. </p>
  
  <p>However, I am not quite sure what is the correct way to send cookies using Python Requests. 
  Here is a screen shot how it looks like in Chrome.</p>
  
  <p>It looks like I can either use cookie as a key in the request header or use the cookie argument in the post command. </p>
  
  <p>(1). If I want to use cookie in the request header, should I treat the whole cookie content as a long string and set the key to be <code>cookie</code> and set the value to be that string?</p>
  
  <p>(2). If I want to use the cookie argument in the <code>request.post</code> command, should I manually translate that long string into a dictionary first, and then pass to cookie argument?. Something like this?</p>
  
  <pre><code> mycookie = {'firsttimevisitor':'N'; 'cmTPSet':'Y'; 'viewType':'List'... }
   # Then 
   r = requests.post(myurl, data=myformdata, cookies=mycookie, headers=myheaders)
  </code></pre>
  
  <p>Thanks!</p>