A simple HTTP request in Python will succeed from some pcs and not others. The pcs are on different networks
python version = 3.10.10 requests==2.28.2
The request can be as simple as below but replace the API URL with the one that you are having trouble with.
import requests
print(requests.get("https://api.github.com"),)
No error is produced. There is no sign of activity on the http server.
If I add a timeout such as
import requests
print(requests.get("https://api.github.com", timeout=1))
the request will complete successfully. However, it is clear from testing with various timeout values that the request is only being made after the timeout ends.
This creates a problem for performance testing.