idhttp post的时候 网速不好的时候很容易出错 求解如何异常处理一下 感谢高手  

解决方案 »

  1.   

    idhtp1.ReadTimeout := XXXX;try
      idhttp1.get..
    except
    end;
      

  2.   

    except 这里的代码 怎么写  怎么写 
      

  3.   

    except中你想怎么写就怎么写,比如shwomessage('错误');
      

  4.   

    idhtp1.ReadTimeout := XXXX;try
      idhttp1.get..
    except
    end;目前我也是这样处理的
      

  5.   


    except 不写代码????
      

  6.   

    里面要写也可以。。
    我一般这样子写
    try
      S := idhttp1.get..
    except
      S := '';
    end;