|
|
1
41
|
|
2
24
一个简单的方法是:
你需要做一点按摩,让一切都按你想要的顺序进行,排除你不感兴趣的变量,但是应该给你一个开始。 |
|
|
3
20
|
|
|
4
10
细节: http://cmyker.blogspot.com/2012/10/how-to-dump-http-headers-with-php.html |
|
|
5
5
整理答案 Peter Bailey 和 Cmyker 你会得到如下信息:
它与
|
|
|
6
3
如果需要实际的HTTP头(请求和响应),请给出 hurl.it 尝试一下。
您可以使用php命令
|
|
|
7
1
文件“获取”内容(“php://input”)并不总是有效。 I have a request with in the headers "content-length=735" and "php://input" is empty string. So depends on how good/valid the HTTP request is. |
|
|
8
0
此外,您可以使用 get_headers() . 它不依赖于Apache。
|