重定向到页面并发送自定义HTTP标头 [英] Redirect to page and send custom HTTP headers
本文介绍了重定向到页面并发送自定义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: ....");
...
这篇关于重定向到页面并发送自定义HTTP标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文