System.Net.HttpWebRequest.Address Property

Gets the Uniform Resource Identifier (URI) of the Internet resource that actually responds to the request.

Syntax

public Uri Address { get; }

Value

A Uri identifying the Internet resource that responds to the current request. The default is the URI used by the WebRequest.Create(Uri, bool) method to initialize the current instance.

Remarks

The HttpWebRequest.Address property is set to the URI after any redirections that happen during the request are complete.

The URI of the original request is kept in the HttpWebRequest.RequestUri property.

Requirements

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