postList.Add('username=1');
    postList.Add('password=1');  
    aIdHTTP.HandleRedirects := true;
    aIdHTTP.Request.Accept := 'text/html, application/xhtml+xml, */*';
    aIdHTTP.Request.AcceptLanguage := 'zh-CN';
    aIdHTTP.Request.UserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
    aIdHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
    aIdHTTP.Post('http://www.xxx.cim/login', postList, Response);
    memo1.lines.add(aIdHTTP.Response.RawHeaders.Text);