File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
3
"""
4
- This module implements a set of requests TransportAdapter, PoolManager, ConnectionPool and
5
- HTTPSConnection with one goal only:
4
+ This module implements a set of requests TransportAdapter, PoolManager,
5
+ ConnectionPool and HTTPSConnection with one goal only:
6
6
7
- to use a specific IP address when connecting via SSL to a web service without running into SNI trouble.
8
- The usual technique to force an IP address on an HTTP connection with Requests is
9
- (assuming I want http://example.com/some/path on IP 1.2.3.4):
7
+ to use a specific IP address when connecting via SSL to a web service without
8
+ running into SNI trouble. The usual technique to force an IP address on an
9
+ HTTP connection with Requests is (assuming I want http://example.com/some/path
10
+ on IP 1.2.3.4):
10
11
11
12
requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'})
13
+
12
14
this is useful if I want to specifically test how 1.2.3.4 is responding;
13
15
for instance, if example.com is DNS round-robined to several IP addresses
14
16
and I want to hit one of them specifically.
19
21
PACKAGE_NAME = 'forcediphttpsadapter'
20
22
PACKAGE_VERSION = '1.0.0'
21
23
AUTHOR = 'Roadmaster'
22
- EMAIL = 'your@email '
24
+ EMAIL = 'daniel@tomechangosubanana.com '
23
25
URL = 'https://github.com/Roadmaster/forcediphttpsadapter'
24
26
25
27
You can’t perform that action at this time.
0 commit comments