tests/get-with-headers.py
branchstable
changeset 567 fd52c78e1aa7
parent 566 986012d03ed3
child 717 43efa35c5eed
equal deleted inserted replaced
566:986012d03ed3 567:fd52c78e1aa7
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 
     2 
     3 __doc__ = """This does HTTP get requests given a host:port and path and returns
     3 """This does HTTP GET requests given a host:port and path and returns
     4 a subset of the headers plus the body of the result."""
     4 a subset of the headers plus the body of the result."""
     5 
     5 
     6 import httplib, sys, re
     6 import httplib, sys, re
     7 
     7 
     8 try:
     8 try: