Try to get request header but XMLHttpRequest does not allow to access browser created request data. So I add pseudo getRequestHeader function to such object.