Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Created September 6, 2024 00:13
Show Gist options
  • Save h0tw1r3/0537845ce27d8bcce936cf5be201ffb6 to your computer and use it in GitHub Desktop.
Save h0tw1r3/0537845ce27d8bcce936cf5be201ffb6 to your computer and use it in GitHub Desktop.
python globally disable requests ssl verification
import requests
def disable_request_verification():
requests.urllib3.disable_warnings()
old_init = requests.Session.__init__
def new_init(self, *k, **kw):
old_init(self, *k, **kw)
self.verify = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment