Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Public Shared Function checkmail(mail As String, password As String) As String
  2. Try
  3.  
  4. Dim postData As String = "referer=struts.token.name=struts.token&struts.token=G684VX6C4T1E542081H5MDLB9AT7L9KD&j_username=" & mail & "&j_password" & password & "&service-entity=np"
  5. Dim tempCookies As New CookieContainer
  6. Dim encoding As New UTF8Encoding
  7. Dim byteData As Byte() = encoding.GetBytes(postData)
  8.  
  9. Dim postreq As HttpWebRequest = DirectCast(WebRequest.Create("Referer: https://account.sonyentertainmentnetwork.com/login.action"), HttpWebRequest)
  10. Catch
  11. checkmail(mail, password)
  12. Return "error"
  13. End Try
  14. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement