Requires HTTP status (200/500 / etc) Code from WebBrowser Control

I have a .NET desktop application (not a web) with a WebBrowser control.

I cannot find any information on how or if possible, get an HTTP status code when a document moves inside this control. Does anyone know if this is possible or how?

The goal is to detect codes other than 200 and perform actions in the application.

+3
source share
1 answer

A web page does not consist of a single HTTP GET request. For example, the first page of stackoverflow.com requires 16 requests. Things like javascript code, images, page hit counts coming from different websites. Some of them are retrieved from the cache instead of loading.

WebBrowser (aka Internet Explorer) . HttpWebRequest, , , -.

+3

Source: https://habr.com/ru/post/1781912/


All Articles