Jan 24, 2014 05:30 PM
(This post was last modified: Jan 24, 2014 05:31 PM by geraldososa.)
What the code does is gets the source of the website.
My code is:
I tried using webclient to get the source. But i still get the error.
My code is:
Code
Dim str As String = Me.RandomString(10).ToLower()
Dim postReq As HttpWebRequest = DirectCast(WebRequest.Create("http://mailnesia.com/mailbox/" & str), HttpWebRequest)
Dim postresponse As HttpWebResponse
postresponse = DirectCast(postReq.GetResponse(), HttpWebResponse)
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3
Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
Dim thepage As String = postreqreader.ReadToEnd
Dim match As Match = Regex.Match(thepage, "\b([0-9a-z]){32}\b")
If match.Success Then
LogInRichTextBox1.Text = match.Groups(0).Value
MsgBox(match.Groups(0).Value)
End If
