error : http://i.minus.com/jBE9xLILup8Vb.JPG
Staples' Code : http://i.minus.com/jNgyetxPr6PAs.JPG
This is the wrapper i am using which also contains the Gaia Login function : )
Link : http://haithame.minus.com/mQwg7Lv9t/
Printable View
error : http://i.minus.com/jBE9xLILup8Vb.JPG
Staples' Code : http://i.minus.com/jNgyetxPr6PAs.JPG
This is the wrapper i am using which also contains the Gaia Login function : )
Link : http://haithame.minus.com/mQwg7Lv9t/
Put the login code in the main form and just do
Code:If GaiaonlineLogin1(Username, Password) = True Then
MsgBox("Logged in.")
Else
MsgBox("Login failed.")
End If
I did , still getting the error : Invalid URI: The format of the URI could not be determined.
of this code in the wrapper :Code: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
Edit : Thread totally failed.
Updated images , more clear.
Err... It must be your wrapper. Try just wrapper1.get ("http://www.gaiaonline.com/auth")
He needs to put HTTP in front of his URL.
Yeah, put http in all of them, and now it's the code that is bugging >__> I fail.