Class
URLMonInterop

URLMon Interop Class

Definition

Namespace:Fiddler

Assembly:FiddlerCore.dll

Syntax:

cs-api-definition
public static class URLMonInterop

Inheritance: objectURLMonInterop

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()

Methods

GetProxyInProcess()

Query WinINET for the current process' proxy settings. Oddly, there's no way to UrlMkGetSessionOption for the current proxy.

Declaration

cs-api-definition
public static string GetProxyInProcess()

Returns

string

String of hex suitable for display

ResetProxyInProcessToDefault()

Configures the current process to use the system proxy for URLMon/WinINET traffic.

Declaration

cs-api-definition
public static void ResetProxyInProcessToDefault()

SetProxyDisabledForProcess()

Configures the current process to use no Proxy for URLMon/WinINET traffic.

Declaration

cs-api-definition
public static void SetProxyDisabledForProcess()

SetProxyInProcess(string, string)

Sets the proxy for the current process to the specified list. See http://msdn.microsoft.com/en-us/library/aa383996(VS.85).aspx

Declaration

cs-api-definition
public static void SetProxyInProcess(string sProxy, string sBypassList)

Parameters

sProxy

string

e.g. "127.0.0.1:8888" or "http=insecProxy:80;https=secProxy:444"

sBypassList

string

Semi-colon delimted list of hosts to bypass proxy; use <local> to bypass for Intranet

SetUAStringInProcess(string)

Set the user-agent string for the current process

Declaration

cs-api-definition
public static void SetUAStringInProcess(string sUA)

Parameters

sUA

string

New UA string