Intercept HTTP request via Internet Explorer extension - javascript

I need your help.
I'm developing an IE extension and it must get information about every outcome HTTP request done from the IE. Is it possible?
For example, in Chrome it can be achieved with chrome.webRequest, in Firefox - with httpObserver, but I have not found a way to do it in IE extension.
Is it possible?
Thanks!

I think what you are looking for is
HttpListener
There is more to read about it on MSDN:
https://msdn.microsoft.com/en-us/library/system.net.httplistener(v=vs.110).aspx

Related

chrome.webRequest and safari

I'm trying to port a Chrome/Firefox extension for Safari. But the extension use a lot a feature of those browsers that doesn't seem to exist in Safari : chrome.webRequest (https://developer.chrome.com/extensions/webRequest).
The chrome.webRequest let you get information about every http requests sent (event from others tabs.).
I know that Safari has a very basic safari.application.addEventListener for navigate and beforeNavigatebut Chrome give a lot more information (like responseHeaders) and other events (like onBeforeRedirect or onErrorOccurred).
Is there a way to achieve that with pure js or with the safari js-extension API ?

can i send message from chrome extension to java server ?

so my question is I want build chrome extension to send message to java server should I use XmlHttpRequest API in chrome extension and java should be HTTP server?
It should be noted that Chrome, Firefox, Opera and Safari all use the XMLHttpRequest2 object. While Internet Explorer uses the similar XDomainRequest object, which works in much the same way as its XMLHttpRequest counterpart, but adds additional security precautions.
You will first need to create the appropriate request object.
Check out the steps here: https://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/

How can I redirect/handle chrome traffic with chrome extension?

I'd like to create chrome extension which behaves like a proxy, so I can do whatever I want with HTTP requrests coming from browser. What approach can I use for this? What API to use for HTTP request hooking? Googling and reading chrome documentation didn't give me any ideas.
Thanx.

IE11 does not send HTTP POST data

I have a problem with sending data using XMLHttpRequest and/or ActiveXObject("Microsoft.XMLHTTP").
I can't even get the example from w3schools to work :( - http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_post2
The problem is that there is the request to server, but it totally ignores the argument from the following code and no data arrives to server.
xmlhttp.send("fname=Henry&lname=Ford")
Is it a bug of IE11, or should it be done in another way?
I've tried using both ActiveXObject and XMLHttpRequest.
Yes, it works in my IE 11.
Did you test your code in chrome, and debug it where it causes error?
I have the same problem with IE11/Windows7, it doesn't happen all the time. It is certainly a bug in IE11. all other browser work just fine. As a workaround, I have to use "GET". You can do the same.
I recommend that you ask someone from Microsoft browser team to take a look at this.

debugging solutions for opera and internet explorer

Searching for solution or methods of debugging my jquery script under the Opera/IE browser. Seems that its not send ajax $.post() request or send it to incorrect address or something similar. There is no problems at Firefox. Maybe somebody know addons or other hacks to check what actual data send by the browser at buckground (request headers, answers)?
Where is something similar to Firefox Javascript Console at Opera and Internet Explorer?
Opera has a developer-tool called Dragonfly. Simply rightclick anywhere on your page and select "Inspect element". Here you have console, inspector mode, NET and so on. Everything you need.
IE also has a developer tool. You access this by hitting F12.
Based on what you need, these tools should be enough.
I use fiddler2, its brilliant and will work with all browsers as it is a standalone application.
Fiddler2 Web debugging proxy
As OptimusCrime says there is a developer tool in IE.
It's worth mentioning that IE (7 and 8) will throw an error if the tool is disabled and there is any reference to the console in your code.

Categories

Resources