文字

http_get_request_headers

(PECL pecl_http >= 0.10.0)

http_get_request_headersGet request headers as array

说明

array http_get_request_headers ( void )

Get a list of incoming HTTP headers.

参数

返回值

Returns an associative array of incoming request headers.

参见

  • http_get_request_body() - Get request body as string
  • http_get_request_body_stream() - Get request body as stream
  • 如使用 PHP 5.1.0 及以后版本中为 HttpResponse 类。

用户评论:

[#1] ocus51 at gmail dot com [2008-05-13 07:36:55]

Keep in mind that this function replaces all "_" characters by "-" in headers names

上一篇: 下一篇: