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
Results 1 to 6 of 6
Thread: Quick Help
- 09 Feb. 2012 12:19am #1
Quick Help
- 09 Feb. 2012 12:40am #2
Moved to programming section.
// Signature
- 09 Feb. 2012 06:50pm #3
- 10 Feb. 2012 01:41pm #4
It just looks like you haven't declared a GetStringBetween method.
- 10 Feb. 2012 10:26pm #5
- 12 Feb. 2012 06:17am #6
- Age
- 30
- Join Date
- Nov. 2009
- Location
- Anaheim, California
- Posts
- 1,065
- Reputation
- 99
- LCash
- 0.00