UtilWebGetHttpResponse(String) Method
Gets the Http response of an Http request.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static HttpWebResponse GetHttpResponse(
string url
)
Public Shared Function GetHttpResponse (
url As String
) As HttpWebResponse
Dim url As String
Dim returnValue As HttpWebResponse
returnValue = UtilWeb.GetHttpResponse(url)
public:
static HttpWebResponse^ GetHttpResponse(
String^ url
)
static member GetHttpResponse :
url : string -> HttpWebResponse
No code example is currently available or this language may not be supported.
- url String
-
The url to request.
HttpWebResponse
The
HttpWebResponse.
This is a code example.
No code example is currently available or this language may not be supported.
Dim response As HttpWebResponse = GetHttpResponse("http://www.google.com/StatusCode404")
If response.StatusCode = HttpStatusCode.NotFound Then
MessageBox.Show("Error 404", "", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.