4

Possible Duplicate:
PHP: Does $_SERVER['HTTP_X_REQUESTED_WITH'] exist or not?

Recently came upon a problem where ajax-detection wasn't working.

This is a PHP question.

It turns out the $_SERVER['X_HTTP_REQUESTED_WITH'] didn't contain anything, but $_SERVER['X_HTTP_REQUEST_WITH'] did (notice the missing 'ED').

I've searched and I haven't yet found anything conclusive in my searches as to whether this has changed recently (currently this particular site is on 5.3.10), or if it's always been the case (which would make other postings concerning the subject concerning as they mostly seem to reference the "ED" version).

FYI, this site is on apache 2.2.19, if it makes any difference as well.

Community
  • 1
  • 1
mmucklo
  • 390
  • 2
  • 6

1 Answers1

3

Most likely it's just a typo and the header for XmlHttpRequest is being set incorrectly by client-side ajax code.

BluesRockAddict
  • 15,525
  • 3
  • 37
  • 35