title: How to get session cookies of a site?
body: <p>I am trying to parse a website where I have to first the cookies and then pass to another request. In Python I can do the following:</p>
  <pre><code>session = requests.Session()
  response = session.get('https://www.page.com')
  cookies = response.cookies
  response = session.get('https://www.page.com/part/1234', headers=headers,cookies=cookies)
  print(response.text)
  </code></pre>
  <p>What options do I have available if I use the <code>file_get_contents</code> or <code>Requests</code> library?</p>
  <p>I could not find it in <a href="https://github.com/rmccue/Requests/" rel="nofollow noreferrer">this</a> library.</p>