We are sending a POST type http request with information in header as follows:
POST /Inbound_sms_peerless.php HTTP/1.1 Request Method: POST Request URI: /Inbound_sms_peerless.php Request Version: HTTP/1.1 Accept: application/json Content-Type: application/json User-Agent: Jersey/2.23.2 (HttpUrlConnection 1.8.0_60) Host: www.sms.gnyservices.com Connection: keep-alive Content-Length: 120 [Full request URI: http://www.example.com/Inbound_sms_peerless.php]
Request Header : {"from":"+13126477409","recipients":["+19298005992"],"ccRecipients":[],"text":"Sajjad","mediaURL":null,"contentId":null}
My question is how can i read the request header values in php?