idhttp get google 出错 
var
IDHTTP: TIDHttp;
ss: String;
begin
IDHTTP:= TIDHTTP.Create(nil);  idhttp.Disconnect;
    idhttp.HandleRedirects:= true;   //必须支持重定向否则可能出错
    idhttp.ReadTimeout:= 15000;     //超过这个时间则不再访问
    IdHTTP1.Request.UserAgent := '去掉了D7标识';
ss:=utf8toansi(idhttp.Get('http://www.google.com/index.php'));   //UTF8编码转换
if pos('baidu',ss) > 0   then     //随意找个关键词测试
showmessage('ok')
else
showmessage('no');end;
郁闷 只要get google  baidu   就出错 求解