There is a question that I programmatically send a GET request, after which I get a page with HTML and JS (the main thing is JS), it needs to be executed in the webbrowser, after which it sends a post request, that's the problem how not to let the POST request get to the site, ie intercept and write it down say in the STRING variable? The option to just take out the JS and execute it, say, in jint does not work because the code is extremely messy, the easiest option is to give it to any browser ...

  • Once you know the code, before pasting it into WebBrowser change the path to send to your - solution in the forehead - Vadim Prokopchuk
  • Yes, I considered this option, but it would be quite problematic to implement it in my application, I was thinking about creating any layer for catching POST requests ... - Wanderer

1 answer 1

To intercept requests coming from C # WebBrowser, use this .

(Answer from English SO)