My server guys disabled all socket functions and after requesting them they enabled CURL and i am negotiating with them for other functions.
Meanwhile in one of my code i want to read raw post data from php://input
I was using file_get_contents(“php://input”) to get raw post data but with only curl enabled in my server i could not do that.
So i want to know how to read raw posted data using curl.
Give your thoughts please.
to my another question related to this i got an alternate. and it worked.
what are the alternatives for php://input and $HTTP_RAW_POST_DATA when file_get_contents and always_populate_raw_post_data are disabled
since file_get_contents was disabled and curl was the only way for communication i was trying to use wrappers in curl like php;//input which i think no possible yet i got this alternate.
so the link is an alternate for file_get_contents(“php://input”);