diff options
author | Rob Austein <sra@hactrn.net> | 2007-08-08 04:47:31 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-08-08 04:47:31 +0000 |
commit | f258e3a9e6db9ae18813fdfba115ae8a4382a0bc (patch) | |
tree | 265a6fbc175f9f6ee357770f294c7ac78346009d /scripts/http-client.py | |
parent | ff6380d28c01447e968fe3a9a3a0efc277fff6a6 (diff) |
Nit
svn path=/scripts/http-client.py; revision=837
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 |