user47322
user47322

Reputation:

Intercepting requests made by WebBrowser in C#

Is it possible to intercept all requests made by a WebBrowser control?

I want to modify the request URI of every single request (including requests for images, scripts, stylesheets, etc.)

Upvotes: 8

Views: 12567

Answers (1)

David
David

Reputation: 34573

There is an event called "BeforeNavigate2" that is called before any request is made. You can use this to modify the outgoing requests.

Upvotes: 1

Related Questions