A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Yes, I have a problem with it : )

1.2k views · started by Jah ·
#1
Yes, I have a problem with it : )
error :

Staples' Code :

This is the wrapper i am using which also contains the Gaia Login function : )
Link : http://haithame.minus.com/mQwg7Lv9t/
#2
Put the login code in the main form and just do
            If GaiaonlineLogin1(Username, Password) = True Then
MsgBox("Logged in.")
Else
MsgBox("Login failed.")
End If
#3
I did , still getting the error : Invalid URI: The format of the URI could not be determined.
of this code in the wrapper :
Public Function [get](ByVal URL As [string], ByVal Referer As [string]) As [string]
Dim Request As HttpWebRequest = DirectCast(WebRequest.Create(URL), HttpWebRequest)
Request.Method = "GET"
Request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10"
Request.Referer = Referer
Request.CookieContainer = m_Cookies

Try
Request.UserAgent = If((m_User_Agent <> [string].Empty), m_User_Agent, Nothing)
Finally
Request.UserAgent = Nothing
End Try

Try
Dim Response As HttpWebResponse = DirectCast(Request.GetResponse(), HttpWebResponse)
For i As Integer = 0 To Response.Cookies.Count - 1
m_Cookies.Add(Response.Cookies(i))
If rawCookies.ContainsKey(Response.Cookies(i).Name) Then
rawCookies.Remove(Response.Cookies(i).Name)
End If
rawCookies.Add(Response.Cookies(i).Name, Response.Cookies(i).Value)
Next
Return (New StreamReader(Response.GetResponseStream())).ReadToEnd()
Catch ex As Exception
Debug.Write(ex.Message)
Return [string].Empty
End Try
End Function[/string][/string][/string][/string][/string][/get]
#4
Edit : Thread totally failed.
Updated images , more clear.
#5
Err... It must be your wrapper. Try just wrapper1.get ("http://www.gaiaonline.com/auth")
#6
He needs to put HTTP in front of his URL.
#7
Yeah, put http in all of them, and now it's the code that is bugging >__> I fail.