aledrissi

vrd

Jul 3rd, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Using Web As New Net.WebClient
  2. Web.Headers.Add("Accept: application/json")
  3. Web.Headers.Add("tellonym-client:web:0.46.0")
  4. Web.Headers.Add("User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0")
  5. Web.Headers.Add("Accept-Language: en-US,en;q=0.5")
  6. Web.Headers.Add("Content-Type: application/json;charset=utf-8")
  7. Web.Headers.Add("Host: api.tellonym.me")
  8.  
  9. Try
  10. Dim result As String = Web.DownloadString("https://api.tellonym.me/accounts/check?username=" & TextBox1.Text & "&limit=25")
  11. If result.Contains("""USERNAME_ALREADY_IN_USE""") Then
  12. Label1.Text += 1
  13.  
  14. End If
  15. If result.Contains("""username"":true") Then
  16. Label2.Text += 1
  17.  
  18. End If
  19. Catch ex As WebException
  20.  
  21. End Try
  22. End Using
Advertisement
Add Comment
Please, Sign In to add comment