Http := TIdHTTP.Create(Self); CM := TidCookieManager.Create(Http); responders:=TStringList.Create; Http.AllowCookies := true; Http.CookieManager := CM; Http.HandleRedirects := true; Http.Request.Host:='xxx.com/'; Http.Request.UserAgent:='Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10'; Http.Request.Accept:='Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'; Http.Request.AcceptLanguage:='ru,en-us;q=0.7,en;q=0.3'; Http.Request.AcceptCharSet:='windows-1251,utf-8;q=0.7,*;q=0.7'; Http.Request.Referer:='http://xxx.com/'; mmo1.Text:= http.Post('http://xxx.com/', responders);
mmo1.Text:= http.get('http://xxx.com/');
CM := TidCookieManager.Create(Http); Http.AllowCookies := true; Http.CookieManager := CM;