以表单的形式提交数据
$arr = [
'uid'=>123,
'name'=>'abc'
];
$tjurl = 'http://127.0.0.1:8000/index/123';
$str = '<form id="Form1" name="Form1" method="post" action="' . $tjurl . '">';
foreach ($arr as $key => $val) {
$str .= '<input type="hidden" name="' . $key . '" value="' . $val . '"><br>';
}
$str .= '</form>';
$str .= '<script>';
$str .= 'document.Form1.submit();';
$str .= '</script>';
exit($str);