{"record":{"id":"ca3cec51612d66e2","repo":"sqlmapproject/sqlmap","slug":"there-were-no-forms-found-at-the-given-target-url","errorCode":null,"errorMessage":"there were no forms found at the given target URL","messagePattern":"there were no forms found at the given target URL","errorType":"exception","errorClass":"SqlmapGenericException","httpStatus":null,"severity":"error","filePath":"lib/core/common.py","lineNumber":5013,"sourceCode":"        for name, value in re.findall(r\"['\\\"]?(\\w+)['\\\"]?\\s*:\\s*['\\\"]?([^'\\\",}]*)['\\\"]?\", match.group(2)):\n            data += \"%s=%s%s\" % (name, value.strip(), DEFAULT_GET_POST_DELIMITER)\n\n        data = data.rstrip(DEFAULT_GET_POST_DELIMITER)\n        retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None))\n\n    for match in re.finditer(r\"(?s)(\\w+)\\.open\\(['\\\"]POST['\\\"],\\s*['\\\"]([^'\\\"]+)['\\\"]\\).*?\\1\\.send\\(([^)]+)\\)\", content):\n        url = _urllib.parse.urljoin(url, htmlUnescape(match.group(2)))\n        data = match.group(3)\n\n        data = re.sub(r\"\\s*\\+\\s*[^\\s'\\\"]+|[^\\s'\\\"]+\\s*\\+\\s*\", \"\", data)\n\n        data = data.strip(\"['\\\"]\")\n        retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None))\n\n    if not retVal and not conf.crawlDepth:\n        errMsg = \"there were no forms found at the given target URL\"\n        if raiseException:\n            raise SqlmapGenericException(errMsg)\n        else:\n            logger.debug(errMsg)\n\n    if addToTargets and retVal:\n        for target in retVal:\n            kb.targets.add(target)\n\n    return retVal\n\ndef checkSameHost(*urls):\n    \"\"\"\n    Returns True if all provided urls share that same host\n\n    >>> checkSameHost('http://www.target.com/page1.php?id=1', 'http://www.target.com/images/page2.php')\n    True\n    >>> checkSameHost('http://www.target.com/page1.php?id=1', 'http://www.target2.com/images/page2.php')\n    False\n    \"\"\"","sourceCodeStart":4995,"sourceCodeEnd":5031,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/common.py#L4995-L5031","documentation":"Error \"there were no forms found at the given target URL\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/common.py:5013 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}