forcediphttpsadapter
forcediphttpsadapter copied to clipboard
A requests TransportAdapter allowing to force a specific IP for HTTPS connections.
Doesn't work. I changed to random dest_ip and got the same result (in python 2)
Hi, I have not been able to use this adapter, maybe I just misunderstood the goal, maybe I misused it... I wanted to use it to test a configuration before...
The module works fine, but the proxies parameter is ignored and does not use proxies. ``` session = requests.Session() session.mount(protocol_domain, ForcedIPHTTPSAdapter(dest_ip=ip)) r = session.get(address, verify=False, proxies=proxies) ```
It does not work since I have upgraded to Python 3.10 and reinstalled the venv. Traceback: ``` File "/home/my_user/.local/share/virtualenvs/testproject-iixzfc0b/lib/python3.10/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, **kwargs) File "/home/my_user/.local/share/virtualenvs/testproject-iixzfc0b/lib/python3.10/site-packages/requests/sessions.py", line...
Hello, can you please help me - I am trying to understand how to get responses from IP hosting several websites I found than `34.240.28.46` hosts the site I am...
`from forcediphttpsadapter.adapters import ForcedIPHTTPSAdapter` `import pickle` `adapter = ForcedIPHTTPSAdapter(dest_ip='127.0.0.1')` `pickle.loads(pickle.dumps(adapter))` throws: AttributeError: 'ForcedIPHTTPSAdapter' object has no attribute 'dest_ip' The problem is that "dest_ip" field is not returned in \_\_getstate\_\_ method.