www/py-forcediphttpsadapter 1.1.0_1 DragonFly
Use IP address when connecting via SSL
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- python, www
- Package size
- 7.4 KiB, 28.3 KiB installed
Description
This module implements a set of requests TransportAdapter, PoolManager, ConnectionPool and HTTPSConnection with one goal only: to use a specific IP address when connecting via SSL to a web service without running into SNI trouble.
The usual technique to force an IP address on an HTTP connection with Requests is (assuming I want http://example.com/some/path on IP 1.2.3.4): requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'})
This is useful if I want to specifically test how 1.2.3.4 is responding; for instance, if example.com is DNS round-robined to several IP addresses and I want to hit one of them specifically.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | www/py-forcediphttpsadapter | 1.1.0_1 |
| FreeBSD | www/py-forcediphttpsadapter | 1.1.0_1 |
| HardenedBSD | www/py-forcediphttpsadapter | 1.1.0_1 |
| GhostBSD | www/py-forcediphttpsadapter | 1.1.0_1 |
Install
Binary package:
pkg install py311-forcediphttpsadapter
From DPorts:
cd /usr/dports/www/py-forcediphttpsadapter && make install clean