F fxrm411 Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-18 #1 如何测定一个URL是否存在?在线等待。请大家快帮忙
F feifeich Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-18 #3 使用TIdHTTP控件: IdHTTP1.Head('http://www.sina.com.cn/sfdsf.htm'); if pos('200 OK', IdHTTP1.Response.ResponseText) <> -1 then showmessage('网页存在') else showmessage('网页不存在');
使用TIdHTTP控件: IdHTTP1.Head('http://www.sina.com.cn/sfdsf.htm'); if pos('200 OK', IdHTTP1.Response.ResponseText) <> -1 then showmessage('网页存在') else showmessage('网页不存在');