{"action":"opened","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2807","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2807/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2807/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2807/events","html_url":"https://github.com/kennethreitz/requests/issues/2807","id":110258668,"number":2807,"title":"HTTP Proxy with prepared request (honouring env. var.)","user":{"login":"mxjeff","id":2509872,"avatar_url":"https://avatars.githubusercontent.com/u/2509872?v=3","gravatar_id":"","url":"https://api.github.com/users/mxjeff","html_url":"https://github.com/mxjeff","followers_url":"https://api.github.com/users/mxjeff/followers","following_url":"https://api.github.com/users/mxjeff/following{/other_user}","gists_url":"https://api.github.com/users/mxjeff/gists{/gist_id}","starred_url":"https://api.github.com/users/mxjeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxjeff/subscriptions","organizations_url":"https://api.github.com/users/mxjeff/orgs","repos_url":"https://api.github.com/users/mxjeff/repos","events_url":"https://api.github.com/users/mxjeff/events{/privacy}","received_events_url":"https://api.github.com/users/mxjeff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T15:58:44Z","updated_at":"2015-10-07T15:58:44Z","closed_at":null,"body":"Running the following it looks like the proxy env. var. is not honoured:\r\n```python\r\n>>> # requests version 2.2.1 / python 3.4.0\r\n>>> import requests\r\n>>> import os\r\n>>> os.environ['HTTP_PROXY'] = 'http://some.wrong.dns.example.org'\r\n>>> req = requests.Request('GET', 'http://httpbin.org/get')\r\n>>> r = req.prepare()\r\n>>> s = requests.Session()\r\n>>> s.send(r)\r\n<Response [200]>\r\n```\r\nIs it the expected behaviour with the lower level interface ?\r\nI was actually expecting request to transparently use HTTP_PROXY as it does with the main interface requests.get() or requests.request('GET',...).\r\n\r\nCheers\r\n"}}