1

API を使用せずに Photobucket.com にログインしようとしています。これは私が使用しているコードですが、ログインページをキックバックし続けます。

助けてくれてありがとう、私はこれを何日もいじっています。

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"];
4

0 に答える 0