例如:
server-a.com/test.php的内容:
echo 'hello world one';
// now I need to call server-b.com/test.php here silently
// without interfering with user experience
echo 'hello world two';
server-b.com/test.php的内容:
mail($foo, $bar, $qux); header('location: http://google.com');
现在运行server-a.com/test.php
应该输出hello world one hello world two
。即使server-b.com/test.php
调用成功,它也不应该重定向到 google.com。