How to capture full HTTP request data (headers and body) with PHP?

前端 未结 3 688
一向
一向 2021-02-06 01:32

I have a problem implementing an API that works with Java, but fails to work with cURL. We\'ve gone through everything so far and there must be something that is different betwe

3条回答
  •  野性不改
    2021-02-06 01:35

    for headers you can try apache_request_headers() and for body I dont know other method than file_get_contents('php://input');

提交回复
热议问题