diff options
Diffstat (limited to 'scripts/http-client.py')
-rw-r--r-- | scripts/http-client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/http-client.py b/scripts/http-client.py index e1c4ce28..4e1505f3 100644 --- a/scripts/http-client.py +++ b/scripts/http-client.py @@ -31,9 +31,9 @@ f.close() http = tlslite.api.HTTPTLSConnection(host="localhost", port=8080, certChain=certChain, privateKey=privateKey) -http.connect() -http.request("POST", "/", "This is a test. This is only a test. Had this been real you would now be really confused.\n", {"Content-Type":"application/wombat"}) -response = http.getresponse() +https.connect() +https.request("POST", "/", "This is a test. This is only a test. Had this been real you would now be really confused.\n", {"Content-Type":"application/wombat"}) +response = https.getresponse() for h in response.getheaders(): print "%s: %s" % h |