标签: php android retrofit2
由于某些原因我在我的服务中发送了一些自定义标题,这是我的代码:
@GET("categories") Call<List<Category>> categoryList(@Header("userName") String userName);
我想知道如何在我的PHP代码中获取自定义标题的值,我所知道的是:
$headerStringValue = $_SERVER['HTTP_XXXXXX_XXXX'];
我应该用什么来获得正确的价值?
感谢。