| C# | |
|---|---|
public string GetProxy() | |
Return Value
Type: System.String
Contains a string of the form "ip:port:isSocks"
The following example uses the GetProxy method. Parses proxy and gets ip, port, socks.
| C# | Copy Code |
|---|---|
string proxy = instance.GetProxy(); if (proxy != "noproxy") { string[] args = proxy.Split(':'); string ip = args[0]; int port = Convert.ToInt32(args[1]); bool s = Convert.ToBoolean(args[2]); } | |
| PHP | Copy Code |
|---|---|
$proxy = $instance->GetProxy(); if ($proxy != "noproxy") { $args = explode(":", $proxy); $ip = $args[0]; $port = $args[1]; $s = $args[2]; } | |
If a proxy is not used, then the result is "noproxy"
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family