Error 1 'GetStringBetween' is not declared. It may be inaccessible due to its protection level. C:\Users\****\Documents\Visual Studio 2010\Projects\G*****\Form1.vb 16 15
Error 2 'GetStringBetween' is not declared. It may be inaccessible due to its protection level. C:\Users\****\Documents\Visual Studio 2010\Projects\***\Form1.vb 17 17
Using Bradleys wrappers, I am on 2010 Vb.net. Wtf is the problem?
Here is code for login.
Code:Dim strHTML As String
Dim sid As String
Dim Token As String
Dim poststring As String
strHTML = Wrapper.Get("http://www.gaiaonline.com/auth/login/", "http://www.gaiaonline.com/")
strHTML = Replace(strHTML, Chr(34), "'")
sid = GetStringBetween(strHTML, "<input type='hidden' name='sid' value='", "' />")
Token = GetStringBetween(strHTML, "<input type='hidden' name='token' value='", "' />")
poststring = "username=" & TextBox1.Text & "&password=" & TextBox2.Text & "&token=" & token & "&sid=" & sid & "&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F"
strHTML = Wrapper.Post("http://www.gaiaonline.com/auth/login/", poststring, "http://www.gaiaonline.com/auth/login/")
If (InStr(1, strHTML, "?login_success=")) Then
MessageBox.Show("LOGGED IN!")
Else
MessageBox.Show("FAIL")
End If