I have a curl command that works fine with --resolve
, but can't figure out the equivalent with Requests. (If there is one.)
Simplified example:
URL: 192:168.1.1
Socket: 9999
User: fred
Password for fred: 123456
Path to resolve: https://number.street.city:9999/mypath/info
Curl command:
curl -v -u fred:123456 -k -H "Content-Type: application/json"
--resolve number.street.city:9999:192.168.1.1
https://number.street.city:9999/mypath/info
I'm guessing session.resolve_redirects
has an answer, but I don't know how. Any help is appreciated.