Python/requests: Difference between revisions
< Python
(Created page with "== requests == import requests requests.post(url='https://foo.example', data={'bar':'baz'}) == Ignore SSL == requests.get('https://bad-ssl.com', verify=False) Turn off all warning messages: import requests requests.urllib3.disable_warnings() As of Python 3.6+ can turn off the specific warning message too: import warnings warnings.filterwarnings("ignore", message="Unverified HTTPS request") ref: https://stackoverflow.com/questions/15445981/how-do-i-disable-th...") |
(No difference)
|
Latest revision as of 01:37, 14 May 2024
requests
import requests requests.post(url='https://foo.example', data={'bar':'baz'})
Ignore SSL
requests.get('https://bad-ssl.com', verify=False)
Turn off all warning messages:
import requests requests.urllib3.disable_warnings()
As of Python 3.6+ can turn off the specific warning message too:
import warnings warnings.filterwarnings("ignore", message="Unverified HTTPS request")