<p dir="auto">I am calling a service like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import requests
resp = requests.get('http://example.com/some/url', params={'id': 1})"><pre class="notranslate"><code class="notranslate">import requests
resp = requests.get('http://example.com/some/url', params={'id': 1})
</code></pre></div>
<p dir="auto">The service responds with a series of 302 redirects.<br>
I am seeing this exchange.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="client&gt; GET /some/url?id=1 HTTP/1.1
client&gt; Host: example.com

server&lt; HTTP/1.1 302 Moved Temporarily
server&lt; Location: http://example.com/some/url?id=1&amp;extra_data=2

## this is the bad request right here. Note the [('id', 1)] stuck on the end
client&gt; GET /some/url?id=1&amp;extra_data=2&amp;[('id', 1)] HTTP/1.1.
client&gt; Host: example.com

# the server of course doesn't like it
server&lt; HTTP/1.0 400 Bad request."><pre class="notranslate"><code class="notranslate">client&gt; GET /some/url?id=1 HTTP/1.1
client&gt; Host: example.com

server&lt; HTTP/1.1 302 Moved Temporarily
server&lt; Location: http://example.com/some/url?id=1&amp;extra_data=2

## this is the bad request right here. Note the [('id', 1)] stuck on the end
client&gt; GET /some/url?id=1&amp;extra_data=2&amp;[('id', 1)] HTTP/1.1.
client&gt; Host: example.com

# the server of course doesn't like it
server&lt; HTTP/1.0 400 Bad request.
</code></pre></div>
<p dir="auto">Any ideas why this may be happening?</p>
<p dir="auto">Hello,</p>
<p dir="auto">I have just attempted to install requests into a virtualenv environment and am getting the error:<br>
NameError: name 'CERT_NONE' is not defined</p>
<p dir="auto">The full stacktrace is below. I tried to install requests with the command pip install -U requests in my virtual environment. An admittedly quick Google search didn't turn up anything, but I am assuming its user error. Am I doing it wrong somehow?</p>
<p dir="auto">This is on Red Hat Enterprise Linux 5 with Python 2.7.3. I have tried virtualenv with and without site packages, same error either way. If there is any more information I can provide, feel free to let me know.</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Brian</p>
<p dir="auto">Full Stack trace from error:</p>
<p dir="auto">249   File "requests/packages/<strong>init</strong>.py", line 3, in <br>
250<br>
251     from . import urllib3<br>
252<br>
253   File "requests/packages/urllib3/<strong>init</strong>.py", line 16, in <br>
254<br>
255     from .connectionpool import (<br>
256<br>
257   File "requests/packages/urllib3/connectionpool.py", line 45, in <br>
258<br>
259     from .util import get_host, is_connection_dropped, ssl_wrap_socket<br>
260<br>
261   File "requests/packages/urllib3/util.py", line 293, in <br>
262<br>
263     def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,<br>
264<br>
265 NameError: name 'CERT_NONE' is not defined<br>
266<br>
267 ----------------------------------------<br>
268<br>
269 Command python setup.py egg_info failed with error code 1 in /home/bneal/pyv/build/requests<br>
270<br>
271 Exception information:<br>
272 Traceback (most recent call last):<br>
273   File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py", line 107, in main<br>
274     status = self.run(options, args)<br>
275   File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py", line 256, in run<br>
276     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)<br>
277   File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1042, in prepare_files<br>
278     req_to_install.run_egg_info()<br>
279   File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 236, in run_egg_info<br>
280     command_desc='python setup.py egg_info')<br>
281   File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line 612, in call_subprocess<br>
282     % (command_desc, proc.returncode, cwd))<br>
283 InstallationError: Command python setup.py egg_info failed with error code 1 in /home/bneal/pyv/build/requests</p>