Edit

Share via


IWebProxyScript.Run(String, String) Method

Definition

Runs a script.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::String ^ Run(System::String ^ url, System::String ^ host);
public string Run(string url, string host);
abstract member Run : string * string -> string
Public Function Run (url As String, host As String) As String

Parameters

url
String

Internal only.

host
String

Internal only.

Returns

A String.

An internal-only value returned.

Remarks

When the HttpWebRequest object is run, it may need to run the WPAD (Web Proxy Automatic Detection) protocol to detect whether a proxy is required for reaching the destination URL. During this process, the system downloads and compiles the PAC (Proxy Auto-Configuration) script in memory and tries to execute the FindProxyForURL function as per the PAC specification.

When doing so, the system creates an internal application ___domain inside the application which runs with minimal permissions, and, most importantly, it does not grant the UI permission to this new application ___domain. The evaluation of a proxy and running the FindProxyForURL javascript function happens in the context of this new application ___domain and during this process the system may need to run several helper functions as per the PAC specification.

Applies to