def __delete_call(url, headers, payload, insecure=False): url = utils.add_params_to_url(url, payload) if not _verify_check(url, insecure): warnings.simplefilter("ignore", InsecureRequestWarning) result = requests.delete(url, headers=headers, verify=_verify_check(url, insecure)) warnings.resetwarnings() return result
def __delete_call(url, headers, payload): url = utils.add_params_to_url(url, payload) return requests.delete(url, headers=headers)
def __get_call(url, headers, payload): url = utils.add_params_to_url(url, payload) return requests.get(url, headers=headers)