How can I access the raw HTTP request data with PHP/apache?

后端 未结 3 1664
感情败类
感情败类 2021-02-19 00:53

I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn\'t involve using any additional extensions. I\'ve seen the HTTP functi

3条回答
  •  庸人自扰
    2021-02-19 01:45

    Do you mean the information contained in $_SERVER?

    print_r($_SERVER);
    

    Edit:

    Would this do then?

    foreach(getallheaders() as $key=>$value)  {
        print $key.': '.$value."
    "; }

提交回复
热议问题