HttpClientConnection.ProxyURL Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the URL that specifies the location of the proxy.
public:
property System::String ^ ProxyURL { System::String ^ get(); void set(System::String ^ value); };
public string ProxyURL { get; set; }
member this.ProxyURL : string with get, set
Public Property ProxyURL As String
Property Value
A String that contains the URL location of the proxy.
Examples
The following code example shows how to create an HTTP connection for a package and create a client connection. It then sets several properties, including the ProxyURL property.
// Create an HTTP connection.
ConnectionManager httpConn = pkg.Connections.Add("HTTP");
HttpClientConnection clientConn = new
HttpClientConnection(httpConn.AcquireConnection(null));
string HTTPUrl = @"http://<yourserver>/<yourfolder>/test.asmx?wsdl";
clientConn.UseProxy = true;
clientConn.ProxyURL = @"http://<yourproxy>";
clientConn.BypassProxyOnLocal = true;
clientConn.ServerURL = HTTPUrl;
' Create an HTTP connection.
Dim httpConn As ConnectionManager = pkg.Connections.Add("HTTP")
HttpClientConnection clientConn = New
HttpClientConnection(httpConn.AcquireConnection(Nothing))
Dim HTTPUrl As String = "http:// <yourserver>/<yourfolder>/test.asmx?wsdl"
clientConn.UseProxy = True
clientConn.ProxyURL = "http://<yourproxy>"
clientConn.BypassProxyOnLocal = True
clientConn.ServerURL = HTTPUrl