I am attempting to log in to Photobucket.com without using there API. This is the code I am using but it keeps kicking back the login page.
Thanks for any help, I have been messing with this for days.
string formUrl = "https://login.photobucket.com/login";
string formParams = string.Format("ts={0}&sig={1}&usernameemail={2}&password={3}&redir={4}&redirectAction={5}&redirectParams={6}&returnUrl={7}&action={8}", ts, sig, email, password,"","","","","login");
string cookieHeader;
WebRequest req = WebRequest.Create(formUrl);
req.ContentType = "application/x-www-form-urlencoded";
req.Method = "POST";
byte[] bytes = Encoding.ASCII.GetBytes(formParams);
req.ContentLength = bytes.Length;
Using (Stream os = req.GetRequestStream())
{
os.Write(bytes, 0, bytes.Length);
}
WebResponse resp = req.GetResponse();
cookieHeader = resp.Headers["Set-cookie"];