-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsproxiesIssues related to HTTP and SOCKS proxiesIssues related to HTTP and SOCKS proxies
Description
I am trying to use a NordVPN HTTP Proxy. One needs to supply user and password.
From reading the documentation of httpx it seems to me that the below should work but I am getting error code 407 which means that authentication definitely did not happen.
I can provide more information to troubleshoot if needed. I am not sure what is going on in there and what info would you need for that.
proxy = httpx.Proxy(
url=f"http://[username]%40[mail-domain]:[password]@{proxy}:80"
)
with httpx.Client(proxies=proxy, trust_env=False) as client:
resp = client.get("https://www.gazzetta.it")
print(resp.text)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsproxiesIssues related to HTTP and SOCKS proxiesIssues related to HTTP and SOCKS proxies