simulate

How to simulate timeout response

How to simulate timeout response Question: 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 …

Total answers: 2

Python simulate keydown

Python simulate keydown Question: After searching for several hours i´m wondering if its possible to simulate a keydown press on the keyboard. For example I want my program to hold the x key down for five seconds so when I run it in notepad it would look like to see something like this: xxxxxxxxxxxxx. I …

Total answers: 5