[This is preliminary documentation and is subject to change.]
Fetch the content of a given URL.
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static KeyValuePair<HttpStatusCode, string> GetURL(
string urlAddress,
int timeout = 5000
)
public static KeyValuePair<HttpStatusCode, string> GetURL(
string urlAddress,
int timeout = 5000
)
Public Shared Function GetURL (
urlAddress As String,
Optional timeout As Integer = 5000
) As KeyValuePair(Of HttpStatusCode, String)
Public Shared Function GetURL (
urlAddress As String,
Optional timeout As Integer = 5000
) As KeyValuePair(Of HttpStatusCode, String)
public:
static KeyValuePair<HttpStatusCode, String^> GetURL(
String^ urlAddress,
int timeout = 5000
)
public:
static KeyValuePair<HttpStatusCode, String^> GetURL(
String^ urlAddress,
int timeout = 5000
)
static member GetURL :
urlAddress : string *
?timeout : int
(* Defaults:
let _timeout = defaultArg timeout 5000
*)
-> KeyValuePair<HttpStatusCode, string>
static member GetURL :
urlAddress : string *
?timeout : int
(* Defaults:
let _timeout = defaultArg timeout 5000
*)
-> KeyValuePair<HttpStatusCode, string>
Return Value
Type:
KeyValuePair
HttpStatusCode,
String
Return fetched URL as a string, or null string when resulting status code is not HttpStatusCode.OK.