Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.PreAuthenticate Property

Gets or sets a Boolean value that indicates whether to send HTTP preauthentication header information with current instance without waiting for an authentication challenge from the requested resource. [Edit]

public override bool PreAuthenticate { set; get; }

Value

true to send a HTTP WWW-authenticate header with the current instance without waiting for an authentication challenge from the requested resource; otherwise, false. The default is false. [Edit]

Remarks

When HttpWebRequest.PreAuthenticate is true and credentials are supplied, the HTTP WWW-authenticate header is sent with the current instance without waiting for an authentication challenge from the requested resource; otherwise the request uses standard authentication procedures.

Note:

Set this property to true to allow clients to improve server efficiency by avoiding extra round trips caused by authentication challenges.

This property overrides WebRequest.PreAuthenticate.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0