Jared Pinchot

Is there a way to hook into the XMLHttpRequest object so that I can detect whenever an instance of it is about to call either the open or send methods so that I can modify the object. I need to ensure that a header is added to every instance of the object before the send call completes. There isn't a prototype that I can modify.

If at all possible I'd like that solution to be able to handle the ActiveX implementations (Msxml2.XMLHTTP, Microsoft.XMLHTTP), as well, but its not as important that it does.

Re: Internet Explorer Web Development Hook into XMLHttpRequest open/send


There's no simple way to do this. Is there some reason you can't just create your own wrapper methods and call those