Request made to the server from Web Browser Control?
-
Hello everyone, I am working on hooking to a Web Browser Control in my Windows Application. For example the following code is used to display the typed password or get the web address of the site.
public void OnBeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel)
{
document = (HTMLDocument)webBrowser.Document;foreach (IHTMLInputElement tempElement in document.getElementsByTagName("INPUT")) { if (tempElement.type.ToLower() == "password" && tempElement.value.ToString() != "") { MessageBox.Show("You typed '" + tempElement.value + "' for your Password"); } } }
.
.
.
public void OnDocumentComplete(object pDisp, ref object URL)
{
MessageBox.Show(URL.ToString());
}The problem is that not all website Navagate from one page to another page and eventhough requests are still made to the server but there no navagation to a new URL address. For example when I get to site build in Flash. Can someone tell me how I can monitor the request made to the server? Thank you for your help. Khoramdin -- modified at 13:11 Sunday 25th November, 2007