如果您通過301發佈帖子數據將被刪除。您需要創建eq php腳本,重新解析數據並重新發送
/* FOR test */
$_POST['value'] = 123;
$_POST['key'] = 888;
# Online $_POST check
$_GET['redirect'] = 'https://posttestserver.com/post.php';
/* END: FOR test */
if(filter_var($_GET['redirect'], FILTER_VALIDATE_URL)) {
if (is_array($_POST)) :
echo '<form method="post" action="'. $_GET['redirect'] .'" name="f">';
foreach($_POST as $i => $v){
echo '<input type="hidden" name="'. $i .'" value="'. $v .'">';
}
echo '</form> <script> document.f.submit(); </script>';
else : // IF _GET
$tmp = $_GET['redirect'];
unset($_GET['redirect']);
$ur = http_build_query($_GET);
header("Location: " . $tmp . '?' . $ur);
endif;
}