0

I'm testing with my webhook on PHP, run on IIS (windows). I don't know why i GET with header 'X-ZEvent-Signature', but when receipt is 'X-Zevent-Signature'. In PHP, it is different. First

Second

I don't know how to solve this problem.

  • What actual _problem_ do you need to fix? Header names are case-insensitive by definition, https://stackoverflow.com/q/5258977/1427878 – CBroe Dec 08 '22 at 07:19
  • @CBroe : $headers = getallheaders(); isset($headers["X-ZEvent-Signature"]) = false isset($headers["X-Zevent-Signature"]) = true I don't know why header is lowcase 'E' – nguyenhuy289 Dec 08 '22 at 07:24
  • 1
    You can use https://www.php.net/manual/en/function.array-change-key-case.php to convert all array keys to lowercase first, and then check for `x-zevent-signature`. – CBroe Dec 08 '22 at 07:41
  • You can try to debug in IDE. Check header array values to see in which step the header change to lowercase automatically. – samwu Dec 09 '22 at 06:34

0 Answers0