ONINSECURECONNECTION

From iMacros
Jump to: navigation, search

Command to handle the dialog which appears if a page, which was delivered via https (secure connection), requires some content via http (insecure). This is often seen as a mixed content warning.

Mixed content warning in iMacros Browser

Neither Firefox, nor Chrome have this dialog. IE9 and above loads only the secure content and shows a notification bar, which iMacros does not handle with this or other ON... command. However, it is possible to choose in internet options for that zone, what IE should do when the page requests to display mixed content. This setting affects iMacros Browser too.

Mixed content in IE9 and above


Syntax iMacros Browser

ONINSECURECONNECTION DISALLOW=(YES|NO) CONTINUE=(YES|NO)


Parameters

  • DISALLOW
    Whether iMacros should block the insecure items and display only the contents which was delivered securely.
  • CONTINUE
    Specifies if the macro is to continue if a dialog appears. If this parameter is set to NO and a secure page contains insecure elements, iMacros aborts the macro playback, as seen in the image below. When called from the scripting interface, if the macro is aborted this way, iimPlay returns error -1360: Security Problem.
Macro aborted due to Security Problem

Examples

ONINSECURECONNECTION DISALLOW=YES CONTINUE=YES
URL GOTO=https://ie.microsoft.com/testdrive/browser/mixedcontent/assets/woodgrove.htm

See Also

ONSECURITYDIALOG, ONCERTIFICATEDIALOG, ONDIALOG, ONDOWNLOAD, ONERRORDIALOG, ONLOGIN, ONWEBPAGEDIALOG