You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to access incoming request object in Custom script in the absence of file_get_contents

Received Response

Summary: Need suggestions on how to read incoming POST request data from within a custom script.

Content (required): We have a custom script that is being called as a REST API from a third party application. We have been using file_get_contents('php://input') to read the POST json contents as raw data but since file_get_contents is no more supported we are stuck. I need some suggestions on how to read incoming request data from within a custom script without using file_get_contents. The request is a POST method and I understand that $_POST will result in a blank array for json content.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!