Skip to content

Instantly share code, notes, and snippets.

@GrahamDumpleton
Last active December 23, 2015 21:09
Show Gist options
  • Save GrahamDumpleton/6694421 to your computer and use it in GitHub Desktop.
Save GrahamDumpleton/6694421 to your computer and use it in GitHub Desktop.
PASS/FAIL matrix for various requests module versions and proxy SSL request via Squid.

Squid configuration:

http_port 3128
https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key

Test names:

The 'http_port' annotation indicates whether Squid HTTP port was used.

The 'https_port' annotation indicates whether Squid HTTPS port was used.

The 'scheme' annotation in test names refers to whether the scheme was part of proxy definition in proxies dictionary passed to requests

no_scheme --> { 'https': 'localhost:3129' }
http_scheme --> { 'https': 'http://localhost:3129' }
https_scheme --> { 'https': 'https://localhost:3129' }

Results:

                    requests        0.9.3   1.2.3   2.0.0

                    no_proxy        PASS    PASS    PASS
         http_port_no_scheme        PASS    FAIL    FAIL
  http_port_with_http_scheme        PASS    PASS    PASS
 http_port_with_https_scheme        FAIL    FAIL    PASS
        https_port_no_scheme        FAIL    PASS    FAIL
 https_port_with_http_scheme        FAIL    FAIL    FAIL
https_port_with_https_scheme        PASS    PASS    FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment