Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the resolved URL of the Sys.Net.WebRequest instance.
var requestUrl = MyWebRequest.getResolvedUrl();
Parameters
Parameter |
Description |
---|---|
value |
A string that represents the URL that the Web request is directed to. |
Exceptions
Exception type |
Condition |
---|---|
value is null. |
Return Value
The resolved URL that the Web request is directed to.
Remarks
This method returns the absolute URL representation, of the URL associated with the WebRequest instance. The URL includes the protocol identifier and the fully qualified domain name. This method is used by other classes such as network executors to determine the target URL for a Web request.
Example
The following example shows how to set and get the resolved URL for a WebRequest instance. This code is part of a complete example found in the WebRequest class overview.
See Also
Reference
Sys.Net.WebRequestManager Class