{"record":{"id":"641870ddd9fffd6a","repo":"sqlmapproject/sqlmap","slug":"specified-second-order-http-request-file-s-does-641870","errorCode":null,"errorMessage":"specified second-order HTTP request file '%s' does not contain a valid HTTP request","messagePattern":"specified second-order HTTP request file '(.+?)' does not contain a valid HTTP request","errorType":"exception","errorClass":"SqlmapDataException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":349,"sourceCode":"\n    if conf.secondReq:\n        conf.secondReq = safeExpandUser(conf.secondReq)\n\n        if not checkFile(conf.secondReq, False):\n            errMsg = \"specified second-order HTTP request file '%s' \" % conf.secondReq\n            errMsg += \"does not exist\"\n            raise SqlmapFilePathException(errMsg)\n\n        infoMsg = \"parsing second-order HTTP request from '%s'\" % conf.secondReq\n        logger.info(infoMsg)\n\n        try:\n            target = next(parseRequestFile(conf.secondReq, False))\n            kb.secondReq = target\n        except StopIteration:\n            errMsg = \"specified second-order HTTP request file '%s' \" % conf.secondReq\n            errMsg += \"does not contain a valid HTTP request\"\n            raise SqlmapDataException(errMsg)\n\ndef _setCrawler():\n    if not conf.crawlDepth:\n        return\n\n    if not conf.bulkFile:\n        if conf.url:\n            crawl(conf.url)\n        elif conf.requestFile and kb.targets:\n            target = next(iter(kb.targets))\n            crawl(target[0], target[2], target[3])\n\ndef _doSearch():\n    \"\"\"\n    This function performs search dorking, parses results\n    and saves the testable hosts into the knowledge base.\n    \"\"\"\n","sourceCodeStart":331,"sourceCodeEnd":367,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L331-L367","documentation":"Second-order mode: conf.secondReq exists and parses via parseRequestFile but yields no request (StopIteration), i.e. the file does not contain a valid HTTP request to use as the second-order trigger.","triggerScenarios":"Thrown at lib/core/option.py:349 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Save a complete raw HTTP request (request line + headers) into the --second-order file","Make sure the request targets the page that reflects the second-order response","Check the file for encoding issues or stray text before the request line"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}