title: Proxies aren't being applied when using python requests
body: <p>I'm creating a console application that can be used in conjunction with proxies to vote at <code>strawpoll.me</code>. Strawpoll has a one vote per IP protocol. I have this code which scrapes proxies from another website and uses them on strawpoll.</p>
  <p>This is my code:</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  r = requests.get(
      'https://api.proxyscrape.com/v2/?request=getproxies&amp;protocol=http&amp;timeout=10000&amp;country=all&amp;ssl=all&amp;anonymity=all')
  proxyfile = [y for y in (x.strip()
                           for x in r.text.splitlines()) if y]
  proxy_lines = len(proxyfile)
  
  for line in proxyfile:
      line = line.strip('\n')
      proxies = {'http': f'http://{line}'}
      r = requests.get('https://www.strawpoll.me/45437270')
      soup = BeautifulSoup(r.content, 'html5lib')
      data = {'options': '255490396'}
      data['security-token'] = soup.find('input',
                                         attrs={'name': 'security-token'})['value']
      token = soup.find(
          'input', attrs={'id': 'field-authenticity-token'})['value']
      data[token] = ''
      r = requests.post(
          'https://www.strawpoll.me/255630314', data=data, proxies=proxies)
      print(r.text)
      print(proxies)
  </code></pre>
  <p>The proxies aren't being applied here for some reason and I keep getting <code>{&quot;success&quot;:&quot;failed&quot;}</code> from <code>print(r.text)</code> But if I use a VPN to change my IP I get a message saying that my vote has been counted. I'm not sure what's wrong here since the docs clearly say to have the proxy saved in a <code>dict</code> which I did.</p>