def get_http_url(method, host, path, headers):
 if ((method != None) and (path != None)):
  if ((host != '') and (not re.match(('(http(s)?://)?' + host), path))):
   http_url_req = (((method + ' ') + host) + path)
  else:
   http_url_req = ((method + ' ') + path)
  http_url_req = url_filter(http_url_req)
  return http_url_req

def get_http_url ( method , host , path , headers ) : if ( ( method != None ) and ( path != None ) ) : if ( ( host != '' ) and ( not re . match ( ( '(http(s)?://)?' + host ) , path ) ) ) : http_url_req = ( ( ( method + ' ' ) + host ) + path ) else : http_url_req = ( ( method + ' ' ) + path ) http_url_req = url_filter ( http_url_req ) return http_url_req
get the http method + url from requests .