Weird Freeze up? HttpWebResponse
Code:
Public Sub SendMessage(ByVal message As String)
On Error Resume Next
Dim uri As New Uri("http://omegle.com/send?msg=" & message & "&id=" & ID)
If (uri.Scheme = uri.UriSchemeHttp) Then
Dim request As HttpWebRequest = HttpWebRequest.Create(uri)
request.Method = WebRequestMethods.Http.Post
Dim response As HttpWebResponse = request.GetResponse()
End If
End Sub
So it freezes at "Dim response As HttpWebResponse = request.GetResponse()" some times. not all the time. It doesnt actually open the page untill i ask for the response but it locks the program up sometimes.. I have no idea how to fix this..
Re: Weird Freeze up? HttpWebResponse
Have you tried to open this page in a web browser? This can be simply due to low bandwidth.
Re: Weird Freeze up? HttpWebResponse
Im Gonna Sound Weird But Have You Tryed To Use
vb Code:
Try
//your code here
Catch ex As Exception
msgbox("Error:" & ex.message)
End Try
when i had an issue with it freezeing up that helped me find out what was the issue :) hope it helps
Re: Weird Freeze up? HttpWebResponse
i cant actually go to the page since im posting. I just want to add a timeout or something