Requests: HTTP for Humans™ - Requests 2.27.1 documentation
import requests
Suppress Warning:
requests.packages.urllib3.\\ disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)
,verify=False
→ Ignora SSL antigo
r = requests.get(url,verify=False)
verify=False
→ Ignorar Certificados HTTPS inseguros ou desatualizados
HTTP Headers
headers = {"Connection": "Upgrade", "Pragma": "no-cache", "Cache-Control": "no-cache", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"}
headers=headers
r = requests.post(url, json = json,verify=False)
Envio de dados
Arquivos
file = file
→ Envio de arquivo
JSON
json={"connection": {"settings": {"**proto**": {...
json = json