Skip to content

Commit

Permalink
updated version and added certificate pinning example
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Feb 2, 2024
1 parent 95c667a commit ab6c736
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions examples/example3- certificate pinning.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import tls_client

session = tls_client.Session(
certificate_pinning={
"example.com": [
"NQvyabcS99nBqk/nZCUF44hFhshrkvxqYtfrZq3i+Ww=",
"4a6cdefI7OG6cuDZka5NDZ7FR8a60d3auda+sKfg4Ng=",
"x4QzuiC810K5/cMjb05Qm4k3Bw5zBn4lTdO/nEW/Td4="
]
}
)

res = session.get(
"https://www.example.com/",
headers={
"key1": "value1",
},
proxy="http://user:password@host:port"
)
2 changes: 1 addition & 1 deletion tls_client/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit ab6c736

Please sign in to comment.