()
This function checks if the way to make a HTTP request is through supplied
    textual file, parses it and saves the information into the knowledge base.
This function checks if the way to make a HTTP request is through supplied
    textual file, parses it and saves the information into the knowledge base.
This function checks if the way to make a HTTP request is through supplied textual file parses it and saves the information into the knowledge base .
def _setRequestFromFile():
    """
    This function checks if the way to make a HTTP request is through supplied
    textual file, parses it and saves the information into the knowledge base.
    """

    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 )