HTTP Response testing tool

The HTTP response testing tests sends http get packets to the server and prints the response status. The script is developed with Python.

Python Source code

import httplib
conn = httplib.HTTPConnection(‘192.168.100.20’,80)
conn.request(“GET”,”/index.html”)
r1 = conn.getresponse()
print r1.status

Code output

The status code 200 is printed.

Learn to make custom network tools and scripts with our video courseClick Here