import requests_unixsocket requests_unixsocket.monkeypatch() r = requests.get('http+unix://%2Fvar%2Frun%2Fdocker.sock/info') assert r.status_code == 200 or you can do it temporarily using a context manager: import requests_unixsocket with requests_unixsocket.monkeypatch(): r = requests....
[feature request] support requests >2.32 via maintained requests-unixsocket fork?Azure/azure-iot-sdk-python#1187 Closed roypatadded a commit to roypat/firecracker that referenced this issueJul 16, 2024 fix: downgrade requests to 2.31.0 in devctr ...
Looks like one of the tests is unreliable, by the way: https://github.com/msabramo/requests-unixsocket/actions/runs/12663395181/job/35289911221. Collaborator webknjaz commented Jan 8, 2025 Filed #81 for the release work. Sign up for free to join this conversation on GitHub. Already have ...
I am trying to run a requests with a UNIX socket but it fails using the latest versions in PyPI. I guess it is related to the change in major version of urllib3 2.0.0 that happened in PyPI roughly 1 month ago $ python3 -m venv my_venv (m...
- name: Install package run: pip install . - name: Run tests run: pytest requests_unixsocket/tests 0 comments on commit 4467030 Please sign in to comment. Footer © 2025 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do not share my personal inf...
-H: Additional Headers Example: -H 'Accept: application/json|Content-type: application/json' -b: Add Cookie Example: -b 'Key=Value|Key2=Value2' -https: Make an HTTPS request over the unix socket -k: Allow unsecure HTTPS requests, don't check certificate -v: VerboseAbout...