Data :=tstringlist.Create; Data.Add('site=2'); Data.Add('id=0'); Data.Add('fccode=0'); Data.Add('fcsid=0'); Data.Add('login=force'); Data.Add('email=****'); Data.Add('pass=***'); str := Form1.idHTTP1.Post('http://login.userapi.com/auth?', Data); В ответ кидает 404 not found. HandleRedirects в true. Что делать ?
Code: var PageProfile:string; begin IdHTTP1.AllowCookies:=true; IdHTTP1.HandleRedirects:=true; try PageProfile:=IdHTTP1.Get('http://login.userapi.com/auth?site=2&id=0&fccode=0&fcsid=0&login=force&email=ТВОЁ_МЫЛО&pass=ПАСС'); except end; if Pos('logout', PageProfile)<>0 then Memo1.Lines.Add('Авторизация удалась') else Memo1.Lines.Add('Авторизация не удалась'); end;