怎样捕捉asList = IdHTTP1->Get("http://"SERVERIP"/verify.asp?username="+sUserName+"&password="+sPassword);连接不成功的异常!
请求大吓们开恩指点!
("http://"SERVERIP"/????是这样写吗?
参数有没有问题?
调试一下,看你post的字符串是不正确,真接装它放到浏览器里能不能连接上!
判断asList所返回的内容啊。
try
{
//...}
catch(const Exception &异常1)
{
//异常处理1
}
//...
catch(const Exception &异常n)
{
//异常处理n
}
catch(...)//其它未捕捉到的异常
{
//异常处理...
}