S.M. Pat
S.M. Pat

Reputation: 311

what is $_SERVER['HTTP_DIGEST']

I got an error

Undefined index HTTP_DIGEST

in this library https://github.com/conekta/conekta_prestashop/blob/master/notification.php#L23 (looks like it is some kind of callback/webhook function) According to php manual http://php.net/manual/en/reserved.variables.server.php where is no HTTP_DIGEST

Upvotes: 0

Views: 97

Answers (1)

Finwe
Finwe

Reputation: 6725

$_SERVER keys beginning with HTTP_ mirror HTTP headers of the current request.

Mentioned in the second most voted comment in the documentation about $_SERVER.

Therefore, as @Cobra_Fast mentions in the comment, $_SERVER['HTTP_DIGEST'] would contain contents of Digest HTTP header.

Upvotes: 1

Related Questions