Does an AJAX call send all HTTP headers by default? If not, how to?

Does an AJAX call send all HTTP headers by default? If not, how to?

Hi,

I'm using a server side device detection script to detect whether my users are on mobile/tablet/desktop (  http://mobiledetect.net/ ). Normally this would be called directly by the user from the browser with a normal page load of a PHP file so the mobile detection script can examine the HTTP headers.

However I need to call the detection script via a JQuery AJAX call (not sure whether to use GET or POST?) and get a response back. When JQuery makes that call to the PHP script, does it include the full HTTP headers that would be included if the PHP was called directly by the browser (e.g. user types URL in address bar)? If not, how do I make this happen so the mobile detection script can examine the headers and do it's work?

Many thanks for any help!

Alex