PHP: HTTP_X_REQUESTED_WITH vs HTTP_X_REQUEST_WITH
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2579254/php-does-serverhttp-x-requested-with-exist-or-not">PHP: Does $_SERVER[&#39;HTTP_X_REQUESTED_WITH&#39;] exist or not?</a>  </p>
</blockquote>



<p>Recently came upon a problem where ajax-detection wasn't working.</p>

<p>This is a PHP question.</p>

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

<p>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).</p>

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