Esempio n. 1
0
def do_GET(url, headers=None, params=None, auth=None, timeout=None):
    check_ssl_certs = False
    disable_warnings()
    response = get(url, params=params, headers=headers, verify=check_ssl_certs, auth=auth, timeout=timeout)

    return response
Esempio n. 2
0
def do_POST(url, headers=None, data=None, params=None, auth=None):
    check_ssl_certs = False
    disable_warnings()
    response = post(url, params=params, data=data, headers=headers, verify=check_ssl_certs, auth=auth)
    return response