HttpPostClientProtocol.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 ()
public HttpPostClientProtocol ()
public function HttpPostClientProtocol ()
Not applicable.

// Math is a proxy class derived from HttpPostClientProtocol.
HttpPostClientProtocol^ myHttpPostClientProtocol = gcnew ::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: {0}", myHttpPostClientProtocol->AllowAutoRedirect );


// 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.set_Credentials(
    System.Net.CredentialCache.get_DefaultCredentials());
 
// Allow the server to redirect the request.
myHttpPostClientProtocol.set_AllowAutoRedirect(true);
Console.WriteLine("Auto redirect is: " + 
    myHttpPostClientProtocol.get_AllowAutoRedirect());

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: