title: How do I reach cookie information in python requests?
body: <p>I am trying to write a small script that will allow me to see information related to the cookies set by my website.</p>
  
  <p>I want to know if it has <code>secure</code> or <code>httpOnly</code> flags set on them. But so far I wasn't able to do it, I only figured out how to get cookie names and values. Here is my current code:</p>
  
  <pre><code>r = requests.post('url', data=data, headers=headers)
  
  for (name, cookie) in r.cookies.items():
      print name, cookie
  </code></pre>
  
  <p>So far this works fine, but I want to get information <em>related</em> to the cookies, not the value itself. Cookie meta-data if you will.</p>
  
  <p>How can I achieve that?</p>