My current API is using token in json body for authenticating app requests for PHP server. I think it is standard for pass token in HEADER. But I don't know. Tell me how i can get HEADER values in php if it is true !!!
And how can i send data in HEADER...?

Asked
Active
Viewed 39 times
0
Pardis Ak
- 73
- 1
- 10
-
which framework you used? – Bhargav Chudasama Nov 27 '18 at 08:02
-
Maybe this helps you? http://php.net/manual/en/function.apache-request-headers.php – Oleg Nurutdinov Nov 27 '18 at 08:03
-
@BhargavChudasama No framework. Raw PHP – Pardis Ak Nov 27 '18 at 08:04
-
Possible duplicate of [How do I read any request header in PHP](https://stackoverflow.com/questions/541430/how-do-i-read-any-request-header-in-php) – Mohammad Nov 27 '18 at 08:09
-
How are you sending the request? That will dictate how you add the header. Is it cURL? file_get_contents() function? – tshimkus Nov 27 '18 at 17:25