def _setRequestFromFile():
 if (not conf.requestFile):
  return
 addedTargetUrls = set()
 conf.requestFile = safeExpandUser(conf.requestFile)
 infoMsg = ("parsing HTTP request from '%s'" % conf.requestFile)
 logger.info(infoMsg)
 if (not os.path.isfile(conf.requestFile)):
  errMsg = 'the specified HTTP request file '
  errMsg += 'does not exist'
  raise SqlmapFilePathException(errMsg)
 _feedTargetsDict(conf.requestFile, addedTargetUrls)

def _setRequestFromFile ( ) : if ( not conf . requestFile ) : return addedTargetUrls = set ( ) conf . requestFile = safeExpandUser ( conf . requestFile ) infoMsg = ( "parsing HTTP request from '%s'" % conf . requestFile ) logger . info ( infoMsg ) if ( not os . path . isfile ( conf . requestFile ) ) : errMsg = 'the specified HTTP request file ' errMsg += 'does not exist' raise SqlmapFilePathException ( errMsg ) _feedTargetsDict ( conf . requestFile , addedTargetUrls )
this function checks if the way to make a http request is through supplied textual file .