HttpPostClientProtocol Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the HttpPostClientProtocol class.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public HttpPostClientProtocol()

// Math is a proxy class derived from HttpPostClientProtocol.
HttpPostClientProtocol myHttpPostClientProtocol = new Math();

// Obtain password from a secure store.
String SecurelyStoredPassword = String.Empty;

// Set the client-side credentials using the Credentials property.
myHttpPostClientProtocol.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Allow the server to redirect the request.
myHttpPostClientProtocol.AllowAutoRedirect = true;
Console.WriteLine("Auto redirect is: " + 
    myHttpPostClientProtocol.AllowAutoRedirect);

.NET Framework
Available since 1.1
Return to top
Show: