Try
Dim request As WebRequest = WebRequest.Create("http://url/1.exe")
request.Credentials = CredentialCache.DefaultCredentials
Dim response As WebResponse = request.GetResponse()
MsgBox("ok")
Catch ex As Exception
MsgBox("err")
End Try
Dim webRequest As System.Net.WebRequest = System.Net.WebRequest.Create("http://url/1.txt")
webRequest.Method = "HEAD"
Dim response As System.Net.HttpWebResponse = CType(webRequest.GetResponse, System.Net.HttpWebResponse)
If (response.StatusCode.ToString = "OK") Then
End If
Catch
로그인
회원가입
Dim webRequest As System.Net.WebRequest = System.Net.WebRequest.Create("http://url/1.txt")
webRequest.Method = "HEAD"
Try
Dim response As System.Net.HttpWebResponse = CType(webRequest.GetResponse, System.Net.HttpWebResponse)
If (response.StatusCode.ToString = "OK") Then
MsgBox("ok")
End If
Catch
MsgBox("err")
End Try
이 댓글을