I know this isn't what you wanted exactly, but it'll point you in the right direction. Credits to cx323 I think.
public string NeoLogin(string user, string pass, ref bool loggedIn)
{
string strHTML = null;
Request("GET", "http://neopets.com/loginpage.phtml", "http://google.com");
Pause(1);
Request("POST", "http://www.neopets.com/hi.phtml?destination=%2Fpetcentral.phtml&username=" + user, "http://neopets.com/loginpage.phtml");
Pause(1);
strHTML = Request("POST", "http://www.neopets.com/login.phtml?username=" + user + "&password=" + pass + "&destination=%2Fpetcentral.phtml", "http://neopets.com/hi.phtml");
if (strHTML.Contains("Set-Cookie: neologin="))
{
loggedIn = true;
return "Logged In";
}
else if (strHTML.Contains("too many times"))
{
loggedIn = false;
return "To Many Login Attempts";
}
else if (strHTML.Contains("badpassword"))
{
loggedIn = false;
return "Wrong Password";
}
else if (strHTML.Contains("frozen"))
{
loggedIn = false;
return "Account Frozen";
}
else if (strHTML.Contains("just a technical problem"))
{
loggedIn = false;
return "Neopets is down for maintenance.";
}
else
{
loggedIn = false;
return strHTML;
}
}
Oh yeah, and then there's this.
if (strHTML.Contains("HTMLPHRASE"))
{
log.Items.Add(CurrentTime() + ": Logged in as " + user.Text);
stop.Enabled = true;
}
If the phrase "htmlphrase" is found in the HTML page that is loaded, then whatever is between the brackets will happen.