1

for some reason i'm sending some custom header in my Service, this is my code :

@GET("categories")
Call<List<Category>> categoryList(@Header("userName") String userName);

i'm wondering how i can get the value of my custom header in my php code, all what i know is :

$headerStringValue = $_SERVER['HTTP_XXXXXX_XXXX'];

what is the key that i should use to get the right value ?

thanks.

Chris
  • 4,672
  • 13
  • 52
  • 93
James
  • 1,190
  • 5
  • 27
  • 52
  • Possible duplicate of [How do I read any request header in PHP](http://stackoverflow.com/questions/541430/how-do-i-read-any-request-header-in-php) – Harsh Sharma Apr 24 '17 at 18:35

0 Answers0