Advertisement
datatheoz

Login2Aol Use

Mar 2nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.82 KB | None | 0 0
  1. Dim objAuth As New AuthRequest("screenname", "password")
  2. With objAuth
  3.     .Secret = "secret answer"
  4.     .UserAgent = "Custom UA"
  5.     .Proxy = New WebProxy("127.0.0.1", 8080)
  6.     .Cookies = oldCookies
  7.     .LoginUrl = "https://www.aim.com/"
  8.     .LoginSuccessTrigger = "startSession('"
  9. End With
  10.  
  11. Using objResponse As AuthResponse = objAuth.Login
  12.     Select Case objResponse.State
  13.         Case AuthResponse.State.ConnectionError
  14.             'handle accordingly
  15.         Case AuthResponse.State.EmptyBody
  16.             'handle accordingly
  17.         Case AuthResponse.State.Unknown
  18.             'handle accordingly
  19.         Case AuthResponse.State.Invalid
  20.             'handle accordingly
  21.         Case AuthResponse.State.Suspended
  22.             'handle accordingly
  23.         Case AuthResponse.State.Valid
  24.             'handle accordingly
  25.     End Select
  26.  
  27.     Debug.Print(objResponse.Headers)
  28.     Debug.Print("")
  29.     Debug.Print(objResponse.Body)
  30. End Using
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement