Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

The underlying connection was closed: The connection was closed unexpectedly

What the code does is gets the source of the website.
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
I tried using webclient to get the source. But i still get the error.
maybe your random string dont exist?
I tried using it without the string and just the url but it still does not work.
[Image: 6d6e0554b3b3b7815171cd0fa9042f6e.png]
Ident thank you now it works i love you baby.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by redmoon90211Oct 12, 2016 09:30 PM 0 119 Oct 12, 2016 09:30 PM
Last Post: redmoon90211
[Python] by W R TJan 13, 2014 08:57 PM 10 236 Jan 13, 2014 08:57 PM
Last Post: Tirus
[.NET] by Justice™Mar 25, 2013 09:01 PM 1 132 Mar 25, 2013 09:01 PM
Last Post: Helius