i used open source in kitploit
i was execute on webserver this code but occur post 500 error
echo '<script type="text/javascript">';
echo "beginCrawl('$urlToCrawl','$testId');";
echo '</script>';
call beginCrawl on php
<script type='text/javascript'>
function beginCrawl(value, valueTwo){
jQuery.post('crawler/begin_crawl.php', {specifiedUrl:value,testId:valueTwo});
}
</script>
this is define beginCrawl
in the "begin_crawl.php"
isset($_POST['specifiedUrl']) ? $urlToScan = $_POST['specifiedUrl'] : $urlToScan = '';
isset($_POST['testId']) ? $testId = $_POST['testId'] : $testId = 0;
using specifiedUrl and testId
in log, exist "Calling AJAX function beginCrawl()"
but not call "begin_crawl.php" and occur post 500 error
how to fix this error?