Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Dim myReq1 As HttpWebRequest = DirectCast(WebRequest.Create(Urlstr), HttpWebRequest) myReq1.Method = "POST" myReq1.ContentType = "application/json; charset=utf-8" Dim mylogin As String Dim bytes1 As Byte() bytes1 = Encoding.UTF8.GetBytes(myAttachment) mylogin = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(myloginDetails)) myReq1.Headers.Add(HttpRequestHeader.Authorization, mylogin) objRequestStream = myReq1.GetRequestStream() objRequestStream.Write(bytes1, 0, bytes1.Length) objRequestStream.Close() Dim myRep1 As HttpWebResponse = DirectCast(myReq1.GetResponse(), HttpWebResponse) Dim respStreamReader1 As New System.IO.StreamReader(myRep1.GetResponseStream()) Dim responseString1 As String = respStreamReader1.ReadToEnd() respStreamReader1.Close() myRep1.Close()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.