Hook into XMLHttpRequest open/send
Hook into XMLHttpRequest open/send
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.
Hook into XMLHttpRequest open/send
Shambhu Sharan