The following simple python script prints the HTTP response header for the URL passed as a command line parameter:
Output of the above script, with http://python.org as the command line parameter, is shown below:
Output of the above script, with http://python.org as the command line parameter, is shown below: