When you try to run json_decode on https, it will throw errors due to null value. file_get_contents("php://input") will also return null.
Way to solve it and the most efficient are as follows
//get data from caller
$your_data_array= json_decode(file_get_contents("php://input",false, stream_context_create($arrContextOptions)),true);
The code actually make it don't care what protocol you are using and set it to false (means no verifications). It normally happen when you are using self-signed or non-standard SSL certificates.
It is the most efficient and the fastest solutions.. but not the most practical :)
The best is -> use standard approved certificates :)
Tuesday, December 20, 2016
Having a virtual private network affords a lot of convenience, particularly for those who want or need to access a remote network from a d...
Last modified: Thu Mar 29 10:57:36 PDT 2012 Distributed Denial of Service (DDoS) Attacks/tools What's new in DDoS? Nothing, really....
An Information Security Certification Program What is CISE? In this overly-connected world with plenty of information security risks, the...
From Facebook p/s: It is a norm in Malaysia :)