We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c667a commit ab6c736Copy full SHA for ab6c736
examples/example3- certificate pinning.py
@@ -0,0 +1,19 @@
1
+import tls_client
2
+
3
+session = tls_client.Session(
4
+ certificate_pinning={
5
+ "example.com": [
6
+ "NQvyabcS99nBqk/nZCUF44hFhshrkvxqYtfrZq3i+Ww=",
7
+ "4a6cdefI7OG6cuDZka5NDZ7FR8a60d3auda+sKfg4Ng=",
8
+ "x4QzuiC810K5/cMjb05Qm4k3Bw5zBn4lTdO/nEW/Td4="
9
+ ]
10
+ }
11
+)
12
13
+res = session.get(
14
+ "https://www.example.com/",
15
+ headers={
16
+ "key1": "value1",
17
+ },
18
+ proxy="http://user:password@host:port"
19
tls_client/__version__.py
@@ -6,6 +6,6 @@
__title__ = "tls_client"
__description__ = "Advanced Python HTTP Client."
-__version__ = "1.0"
+__version__ = "1.0.1"
__author__ = "Florian Zager"
__license__ = "MIT"
0 commit comments