https://logowanie.play.pl/p4-idp2/LoginForm.do에 로그인하려고합니다. 이를 달성하기 위해 htmlAgilityPack과 BrowserSession by Rohit Agarwal을 사용하고 있습니다.게시 요청에 누락 된 쿠키
이 웹보기에 로그온하는 방법을 보려면 Fiddler2을 선택했습니다. 내가 브라우저에 의해 loging있을 때
, 부분이 :
하지만 내가 코드에 의해 동일한 작업을 수행하기 위해 노력하고있어 때, 그것은 같이이다 : 그 문제는 생각
두 번째 경우에는 쿠키가 누락되었습니다. 하지만 코드를 디버깅 할 때 세션 ID가 포함 된 쿠키가 요청에 포함됩니다.
나는 중계를 이해할 수 없으며 요청에 쿠키가 포함되지 않습니다. 누군가 나를 도울 수 있니?
여기 내 코드입니다 : 사용되는 코드의
BrowserSession session = new BrowserSession();
Random rrr = new Random();
session.Get(@"http://24.play.pl/");
session.Post(@"https://logowanie.play.pl/p4-idp2/SSOrequest.do?action=sso");
session.FormElements["login"] = "[censored]";
session.FormElements["password"] = "[also censored]";
string url = @"https://logowanie.play.pl/p4-idp2/Login.do";
string response = session.Post(url);
textBox1.Text = response;
나머지는 Rohit Agarwal blog
동일한 문제가 발생했습니다. 답변을 얻을 수 있기를 바랍니다. – user1378730