tests/get-with-headers.py
changeset 48875 6000f5b25c9b
parent 47582 6bceecb28806
child 49905 cd125eef4388
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 
     2 
     3 """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 from __future__ import absolute_import
       
     7 
     6 
     8 import argparse
     7 import argparse
     9 import json
     8 import json
    10 import os
     9 import os
    11 import sys
    10 import sys