What's the difference between POST and raw POST in PHP at all?

后端 未结 4 1404
情话喂你
情话喂你 2020-12-05 09:13

I have this question after reading the answer here, what\'s the difference at all?

Is it possible to submit raw POST with html ?

4条回答
  •  庸人自扰
    2020-12-05 09:19

    _POST assumes it's application/x-www-form-urlencoded or multipart/form-data form values. HTTP_RAW_POST_DATA, if populated, is the raw string. You can also access this with the psuedo-url php://input. You can submit arbitrary POST data (e.g. XML, JSON, HTML) using AJAX.

提交回复
热议问题