0

Okay I know c# got a vast and very ease to use application development programs but this is what i want to learn now.So when user opens his browser and enters some url in it. Is it possible to send this data or the entered url addressto some other code one such a c# code or some other example c++ which is located on his hard drive.

To be simple when user clicks some link on a webpage or enters some url or closes the browser or when he opens the web browser, Can we detect all his actions that he perform on web browser through c# code or anyother way(I guess add-on or pluins the way it works) but Is it possible to send his actions to c# code and program it and give certain output back to browser so that browser performs it and outputs to user.

Something like browser-->c#code-->website.. I want c# code to act between the browser and webpages.

work I tried so far

I started googling on this and learnt little about how browsers work but still unable to find the solution. However I guess plugins are the way to do such tasks and found firebreath cross platform,a way to develop plugins for browsers. So is this possible by plugins? if so could you suggest me some good tools to develop my own plugins. Thanks

Joe
  • 41,484
  • 20
  • 104
  • 125
niko
  • 9,285
  • 27
  • 84
  • 131

2 Answers2

0

There are several options depending on what you want to achieve:

  • Proxy

    You could implement a http proxy and configure the browser to use that proxy. The proxy sees all traffic and can do whatever it wants... this works rather "browser-agnostic". See the links here and here.

  • PlugIn

    You could implement a plugin... alhtough this a browser-specific... for example IE used to have BHOs to this kind of stuff (not sure whether this is still possible with IE10...). Some options can be found here, here, here, here and here.

Community
  • 1
  • 1
Yahia
  • 69,653
  • 9
  • 115
  • 144
0

You can use FiddlerCore for this

Fiddler.FiddlerApplication.BeforeRequest += sess =>
{
    Console.WriteLine("REQUEST TO : " + sess.fullUrl);
    sess.bBufferResponse = true;
};

Fiddler.FiddlerApplication.Startup(8877, true, true);

Console.ReadLine();

Fiddler.FiddlerApplication.Shutdown();
System.Threading.Thread.Sleep(750);

After running this code, open your browser and navigate to any page.

L.B
  • 114,136
  • 19
  • 178
  • 224