How to get body of a POST in php?

后端 未结 8 1807
小蘑菇
小蘑菇 2020-11-22 01:25

I submit as POST to a php page the following:

{a:1}

This is the body of the request (a POST request).
In php, what do I have to do to

相关标签:
8条回答
  • 2020-11-22 01:56

    Check the $HTTP_RAW_POST_DATA variable

    0 讨论(0)
  • 2020-11-22 01:57

    http_get_request_body() was explicitly made for getting the body of PUT and POST requests as per the documentation http://php.net/manual/fa/function.http-get-request-body.php

    0 讨论(0)
提交回复
热议问题