Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do all browsers support PHP's $_SERVER['HTTP_X_REQUESTED_WITH']?

Tags:

ajax

php

Do all browsers support PHP's $_SERVER['HTTP_X_REQUESTED_WITH']?

Do you know of any browsers or times where $_SERVER['HTTP_X_REQUESTED_WITH'] would not work?

like image 471
JasonDavis Avatar asked Aug 09 '09 11:08

JasonDavis


1 Answers

Sending of a X-Requested-With header really depends on the Ajax library used. I checked out Prototype, jQuery, Mootools and YUI and they all set it.

like image 107
Paul Dixon Avatar answered Sep 19 '22 23:09

Paul Dixon