David Hamilton
David Hamilton

Reputation:

Modify then display page using C#

Can someone point me in the right direction for implementing proxy-like behavior with C#? I'm looking to catch HTTP requests from a site, parse, then modify the DOM and show the results. Ideally, this program would run as a proxy on the local machine, but I'm fine with implementing a custom "browser" if needed.

Any suggestions?

Upvotes: 1

Views: 163

Answers (2)

JP Alioto
JP Alioto

Reputation: 45117

I doubt you want a process on the local machine, so how about a Browser Helper Object (BHO)? You should be able to intercept the content before it's rendered and modify it in any way you want. I've only done them in ATL, but a bit of research indicates a C# version is possible.

Upvotes: 0

crb
crb

Reputation: 8178

What about writing an extension for Fiddler?

Upvotes: 2

Related Questions