Export (0) Print
Expand All

HttpPostClientProtocol Constructor

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft