Can a program that controls IE detect if HTTP 30x code exists?

I am trying to control InternetExplorer.Applicationthrough the COM interface using Perl, Win32::OLEand information from MSDN . My goal is to understand as much as possible what IE is doing. (Related to this question.)

IE uses events to notify my program when it has finished the various steps of processing a specific URL ( NavigateComplete2, DownloadComplete DocumentComplete). He can also tell my program about various errors that he encounters ( NavigateError2). I believe that part of my problem is solved quite well.

I would also like to reliably detect if IE is being redirected by the server. First of all, I am concerned about the HTTP 30x status codes. Is there a way to do this, either using COM automation or using a different route?

+3
source share
1 answer

Hi hill

I use WatiN to reduce Internet Explorer to the will of my applications.

I do not think you can use Perl. But any way it can help.

Its nearly 5 year-old .NET library, dedicated to Internet Explorer automation, was first developed to accelerate web application testing.

Some of its features:

  • Automates all basic HTML elements
  • - AJAX
  • (-) iframe
  • , , , ..
  • HTML ( )
  • .
  • -
  • ()
  • (unit)
  • Internet Explorer 6, 7, 8 FireFox 2 3

, , - , , , post , IE .

, .

+1

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


All Articles