Missing something obvious with python-requests
Chris Angelico
rosuav at gmail.com
Thu Jan 3 21:56:47 EST 2013
On Fri, Jan 4, 2013 at 5:53 AM, Ray Cote
<rgacote at appropriatesolutions.com> wrote:
> proxies = {
> 'https': '192.168.24.25:8443',
> 'http': '192.168.24.25:8443', }
>
> a = requests.get('http://google.com/', proxies=proxies)
>
>
> When I look at the proxy log, I see a GET being performed -- when it should be a CONNECT.
> Does not matter if I try to get http or https google.com.
Not sure if it's related to your problem or not, but my understanding
of a non-SSL request through a proxy is that it'll be a GET request
(eg "GET http://google.com/ HTTP/1.0"). So the problem is only that
it's still doing GET requests when it's an https query (which is where
CONNECT is needed).
ChrisA
More information about the Python-list
mailing list