def send_request(url, method='GET', headers=None, param_get=None, data=None):
 final_hostname = urlsplit(url).netloc
 dbgprint('FinalRequestUrl', url, 'FinalHostname', final_hostname)
 if ((final_hostname not in allowed_domains_set) and (not developer_temporary_disable_ssrf_prevention)):
  raise ConnectionAbortedError('Trying to access an OUT-OF-ZONE domain(SSRF Layer 2):', final_hostname)
 if (not data):
  data = None
 prepped_req = requests.Request(method, url, headers=headers, params=param_get, data=data).prepare()
 if enable_connection_keep_alive:
  _session = connection_pool.get_session(final_hostname)
 else:
  _session = requests.Session()
 parse.time['req_start_time'] = time()
 r = _session.send(prepped_req, proxies=requests_proxies, allow_redirects=False, stream=enable_stream_content_transfer, verify=(not developer_do_not_verify_ssl))
 parse.time['req_time_header'] = (time() - parse.time['req_start_time'])
 dbgprint('RequestTime:', parse.time['req_time_header'], v=4)
 if (verbose_level >= 3):
  dbgprint(r.request.method, 'FinalSentToRemoteRequestUrl:', r.url, '\nRem Resp Stat: ', r.status_code)
  dbgprint('RemoteRequestHeaders: ', r.request.headers)
  if data:
   dbgprint('RemoteRequestRawData: ', r.request.body)
  dbgprint('RemoteResponseHeaders: ', r.headers)
 return r

def send_request ( url , method = 'GET' , headers = None , param_get = None , data = None ) : final_hostname = urlsplit ( url ) . netloc dbgprint ( 'FinalRequestUrl' , url , 'FinalHostname' , final_hostname ) if ( ( final_hostname not in allowed_domains_set ) and ( not developer_temporary_disable_ssrf_prevention ) ) : raise ConnectionAbortedError ( 'Trying to access an OUT-OF-ZONE domain(SSRF Layer 2):' , final_hostname ) if ( not data ) : data = None prepped_req = requests . Request ( method , url , headers = headers , params = param_get , data = data ) . prepare ( ) if enable_connection_keep_alive : _session = connection_pool . get_session ( final_hostname ) else : _session = requests . Session ( ) parse . time [ 'req_start_time' ] = time ( ) r = _session . send ( prepped_req , proxies = requests_proxies , allow_redirects = False , stream = enable_stream_content_transfer , verify = ( not developer_do_not_verify_ssl ) ) parse . time [ 'req_time_header' ] = ( time ( ) - parse . time [ 'req_start_time' ] ) dbgprint ( 'RequestTime:' , parse . time [ 'req_time_header' ] , v = 4 ) if ( verbose_level >= 3 ) : dbgprint ( r . request . method , 'FinalSentToRemoteRequestUrl:' , r . url , '\nRem Resp Stat: ' , r . status_code ) dbgprint ( 'RemoteRequestHeaders: ' , r . request . headers ) if data : dbgprint ( 'RemoteRequestRawData: ' , r . request . body ) dbgprint ( 'RemoteResponseHeaders: ' , r . headers ) return r
sends a request to notes api with appropriate parameters and headers .