重定向到页面并发送自定义HTTP标头
问题描述:
我使用以下代码重定向到PHP中的页面.我需要设置一个自定义HTTP标头以与重定向一起传递.
I use the following code to redirect to a page in PHP. I need to set a custom HTTP headers to pass along with the redirect.
header("Location: http://...");
我该如何存档?
答
多个 header
Docs 调用:
header("Location: ....");
header("Header2: ....");
header("Header3: ....");
...