I am sending X-Auth-HMAC
header from Java using HttpClient to Nginx + PHP-FPM combo:
HttpClient
.newBuilder()
.build()
.sendAsync(
HttpRequest.newBuilder()
.uri("php-fpm:80")
.header("Content-Type", "application/json")
.header("X-Auth-HMAC", "test_hmac_header")
.POST(HttpRequest.BodyPublishers.ofString("test_body"))
.build(),
HttpResponse.BodyHandlers.ofString()
);
But on PHP side in $_SERVER
variable among all headers i get:
...
"HTTP_X_AUTH_HMAC":"test_hmac_header",
...
How could X-Auth-HMAC
become HTTP_X_AUTH_HMAC
?