I'm creating a Python script that is always checking if a webapp is ok, because it was usual to send timeout response to several requests.
This script uses httplib:
conn = httplib.HTTPConnection("10.255.255.1")
conn.request("HEAD", "/")
ping = conn.getresponse()
Then simply analyses the http code returned.
I do not control the webapp, so I can't create a endpoint that would return whatever I want, so my question is: How can I simulate that I've received a timeout?