Skip to content

Commit ab6c736

Browse files
author
Florian
committed
updated version and added certificate pinning example
1 parent 95c667a commit ab6c736

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
__title__ = "tls_client"
88
__description__ = "Advanced Python HTTP Client."
9-
__version__ = "1.0"
9+
__version__ = "1.0.1"
1010
__author__ = "Florian Zager"
1111
__license__ = "MIT"

0 commit comments

Comments
 (0)