System.Net.HttpWebRequest.RequestUri Property

Gets the original Uniform Resource Identifier (URI) of the request.

Syntax

public override Uri RequestUri { get; }

Value

The Uri of the resource that receives requests sent by the current instance.

Remarks

The Uri object passed to System.Net.HttpWebRequest by the call to WebRequest.Create(string).

Following a redirection header does not change the HttpWebRequest.RequestUri property. To get the actual URI that responded to the request, examine the HttpWebRequest.Address property.

Requirements

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