getting the headers from a HTTP POST request
Posted: Sun Dec 27, 2009 11:49 pm
hey.
i have a php script which processes special http post requests. all these post requests have an additional key-value pair in their header wherein the key is called 'Authorization'.
so i have a php script which is getting these types of post requests and i know how to get the body data of the post request using $_POST['key'].
but i want to also get the value of the header key, 'Authorization'. i am unsure how to get the value of this header. can I use $_SERVER['Authorization']?
thanks in advance.
i have a php script which processes special http post requests. all these post requests have an additional key-value pair in their header wherein the key is called 'Authorization'.
so i have a php script which is getting these types of post requests and i know how to get the body data of the post request using $_POST['key'].
but i want to also get the value of the header key, 'Authorization'. i am unsure how to get the value of this header. can I use $_SERVER['Authorization']?
thanks in advance.