Index: third_party/tlslite/tests/httpsclient.py |
diff --git a/third_party/tlslite/tests/httpsclient.py b/third_party/tlslite/tests/httpsclient.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..1a764d70bb26396c0e5fcf5985439a5e30ffb309 |
--- /dev/null |
+++ b/third_party/tlslite/tests/httpsclient.py |
@@ -0,0 +1,11 @@ |
+#!/usr/bin/env python |
+from __future__ import print_function |
+from tlslite import HTTPTLSConnection, HandshakeSettings |
+ |
+settings = HandshakeSettings() |
+settings.useExperimentalTackExtension = True |
+ |
+h = HTTPTLSConnection("localhost", 4443, settings=settings) |
+h.request("GET", "/index.html") |
+r = h.getresponse() |
+print(r.read()) |