title: Python Request Headers Cookies Issue
body: <p>I am trying to scrape <a href="http://www.sky.com/tv/movie/ali-and-nino-2016" rel="nofollow noreferrer">this</a> page, but am having problems with the cookies using the below code:</p>
  
  <pre><code>            SelectProxy.select_proxy()
              local_proxy = SelectProxy.global_proxy
  
              session = requests.Session()
              session.proxies = {local_proxy}
              cookies = session.cookies
  
              url = movie_url
  
              headers ={
              'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
              'Accept-Encoding': 'gzip, deflate',
              'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8',
              'Cache-Control': 'max-age=0',
              'Connection': 'keep-alive',
              'Cookie': cookies,
              'Host': 'www.sky.com',
              'If-Modified-Since': 'Sat, 18 Aug 2018 14:45:31 GMT',
              'Upgrade-Insecure-Requests': '1',
              'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'
              }
  
              r = session.get(url, headers=headers)
  </code></pre>
  
  <p>The error I am getting is as so:</p>
  
  <pre><code>Traceback (most recent call last):
    File "G:\Python27\Kodi\Sky Q Movies Scraper.py", line 33, in &lt;module&gt;
      class sky_movies:
    File "G:\Python27\Kodi\Sky Q Movies Scraper.py", line 90, in sky_movies
      r = session.get(url, headers=headers)
    File "G:\Python27\lib\site-packages\requests\sessions.py", line 488, in get
      return self.request('GET', url, **kwargs)
    File "G:\Python27\lib\site-packages\requests\sessions.py", line 461, in request
      prep = self.prepare_request(req)
    File "G:\Python27\lib\site-packages\requests\sessions.py", line 394, in prepare_request
      hooks=merge_hooks(request.hooks, self.hooks),
    File "G:\Python27\lib\site-packages\requests\models.py", line 295, in prepare
      self.prepare_headers(headers)
    File "G:\Python27\lib\site-packages\requests\models.py", line 409, in prepare_headers
      check_header_validity(header)
    File "G:\Python27\lib\site-packages\requests\utils.py", line 800, in check_header_validity
      "not %s" % (value, type(value)))
  InvalidHeader: Header value &lt;RequestsCookieJar[]&gt; must be of type str or bytes, not &lt;class 'requests.cookies.RequestsCookieJar'&gt;
  </code></pre>
  
  <p>Can anyone advise what I am doing wrong?</p>
  
  <p>Thanks</p>