I spent like 3 hours coding this stupid thing so you better not use it but say you did and plus rep me anyways. This is my version of the HTTP Wrapper since the one that everybody uses doesn't even work for me for who knows why. I wouldn't recommend this to those of you who have the standard wrapper working because of chronic GUI freezing, but if you don't use this. It works just as every other wrapper does but I'll show you how to use it anyways.
Pre-Declarations (Must put these before Class declared)
GetWrapperCode:Public Wrapper As New Wrapper
PostWrapperCode:strHTML = Wrapper.GetWrapper("www.gaiaonline.com")
It's ok if you don't make the URL in URI format, it will automatically turn it into one with the handy URICheck function I made in conjunction with simple string combination coding. Tell me any bugs or functions I should add because since I don't have the standard wrapper, I can't check myself. To add to your project, add existing items of functions.vb and wrapper.vb and if you get the error regarding HTTPUtility, add the reference of system.web.dll to your project.Code:strHTML = Wrapper.PostWrapper("www.gaiaonline.com/auth/", strPostData)
Download TEMPTii's Wrapper
Code:http://www.megaupload.com/?d=8CM56ILH
Code Snippits
Gaiaonline Login Function
How to use:Code:Public Function GaiaonlineLogin(ByVal username As String, ByVal password As String) As Boolean Dim strHTML As String Dim strPostData As String strHTML = Wrapper.GetWrapper("www.gaiaonline.com/auth/") strHTML = Replace(strHTML, """", "'") strPostData = "token=" & _ GetStringBetween(strHTML, "<input type='hidden' name='token' value='", "' />") & "&sid=" & _ GetStringBetween(strHTML, "<input type='hidden' name='sid' value='", "' />") & "&redirect=" & _ System.Web.HttpUtility.UrlEncode(GetStringBetween(strHTML, "<input type='hidden' name='redirect' value='", "' />")) & "&username=" & _ System.Web.HttpUtility.UrlEncode(username) & "&password=" & _ password & "&chap=" strHTML = Wrapper.PostWrapper("www.gaiaonline.com/auth/login/", strPostData) If strHTML.Contains("<title>Welcome to Gaia | Gaia Online</title>") = True Then GaiaonlineLogin = True ElseIf strHTML.Contains("<title>Welcome to Gaia | Gaia Online</title>") = False Then GaiaonlineLogin = False End If End Function
Code:If GaiaonlineLogin(txtUsername, txtPassword) = True Then MsgBox("Login successful.") ElseIf GaiaonlineLogin(txtUsername, txtPassword = False then MsgBox("Login failed.") End If
Results 1 to 13 of 13
Thread: [VB.Net] TEMPTii's Wrapper
- 06 Aug. 2010 03:20am #1
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 0.00
[VB.Net] TEMPTii's Wrapper
Last edited by TEMPTii; 06 Aug. 2010 at 04:17pm.
- 06 Aug. 2010 03:40am #2
- Age
- 29
- Join Date
- Aug. 2010
- Location
- In Your FRIDGE with a laptop :)
- Posts
- 1,360
- Reputation
- 89
- LCash
- 0.00
HE SAYS ITS FOR PORN
sonic_benny says:
IM DOWNALOD ING IT
wuts it for again xD
TEMPTii says:
gee whiz its so hot in hurrr
im gonna go walk outside
brb
its for porn
sonic_benny says:
well that explains all the gaia references
"I try to contribute hopefully im doing my job. " :0,
+rep me if you like the pics i draw for you?
Looks like we got ourselves our own ghetto LG chat room
Anyone want an RS account? Add me Pl0x
MSN: sonic_benny@yahoo.com
- 06 Aug. 2010 03:41am #3
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 0.00
TEMPTii says:
POSTS AND GETS DATA
it includes wrapper.vb and functions.vb
look at wrapper.vb
to see what i've been doing
what tedious coding i've been doing for your convenience
iShellz says:
so its for loggin in?
TEMPTii says:
we've been over this ._.
Just moments before you asked what it does. Nice spam noob.
- 06 Aug. 2010 03:44am #4
- Age
- 29
- Join Date
- Aug. 2010
- Location
- In Your FRIDGE with a laptop :)
- Posts
- 1,360
- Reputation
- 89
- LCash
- 0.00
HAY you said it xD ok so i get it now thank you for the information ._.
"I try to contribute hopefully im doing my job. " :0,
+rep me if you like the pics i draw for you?
Looks like we got ourselves our own ghetto LG chat room
Anyone want an RS account? Add me Pl0x
MSN: sonic_benny@yahoo.com
- 06 Aug. 2010 02:13pm #5
Temptii, nice work
Its good for those people whom use VB, but, your gaia login. Search for gold_amt or whatever it is. Not sure if your way works.Shh, I'm watching My little pony.
- 06 Aug. 2010 02:55pm #6
- 06 Aug. 2010 03:56pm #7
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 0.00
Thanks Bman.
That's how Blazer's works. TBH I just dumbed down his code for that login and it was something I didn't test cuz I had to go to sleep... It's for iShellz anyways.
- 07 Aug. 2010 02:27am #8
- 07 Aug. 2010 02:52am #9
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 0.00
Updated download.
E: Cannot save changes, database error. New download link:
Code:http://www.megaupload.com/?d=RPGXVJIH
Last edited by TEMPTii; 07 Aug. 2010 at 02:55am.
- 08 Aug. 2010 09:11am #10
@your login function:
With a little enhanced knowledge, a login is as easy as a single GET request.
i see you.
- 08 Sep. 2010 01:12pm #11
- Age
- 29
- Join Date
- Aug. 2010
- Location
- In Your FRIDGE with a laptop :)
- Posts
- 1,360
- Reputation
- 89
- LCash
- 0.00
weeeeeeelllll im still confused about this :\ i added the reference and the wrapper is still not defined
"I try to contribute hopefully im doing my job. " :0,
+rep me if you like the pics i draw for you?
Looks like we got ourselves our own ghetto LG chat room
Anyone want an RS account? Add me Pl0x
MSN: sonic_benny@yahoo.com
- 04 Nov. 2010 04:46am #12
Will someone please explain how to use this to me?
- 26 Nov. 2010 12:25pm #13
interesting information, thanks