Sys.Net.WebRequest url Property
Gets or sets the URL of the Sys.Net.WebRequest instance.
var requestUrl = MyWebRequest.get_url();
A string that represents the URL that the Web request is directed to.
The URL that the Web request is directed to. If the URL has not been previously set, returns an empty string ("").
You can set the URL to a fully qualified URL, an absolute URL, or a relative URL. The WebRequest class makes sure that the value that you set is converted into a form that the network executor can use.
The following example shows how to set the URL for a WebRequest instance. This code is part of a complete example found in the WebRequest class overview.
// Set the request Url.