比如检测到
http://192.168.1.10/check.txt 存在时,返回值则为true
http://192.168.1.10/check.txt 存在时,返回值则为true
解决方案 »
- 通过SQLDataSet建表
- 求救图像识别,傅里叶变换
- 在dbgrid中查找符合条件的记录并改变颜色的问题!!(一有答案就结贴!!)
- 各位朋友,真的不能实现ms xml3.0的功能吗?会这种的朋友请帮助.我的原代码如下:
- 如何读取文本文件(*.txt)中任意一行或者任意一列的数据
- 对非接触式IC卡的读写操作问题
- 在线等候一小时,关于mdeiaplayer事件
- 我的传输文件的程序怎么传到4k 就不动了呢 ?
- 我知道怎样让一个FORM透明,可是怎么样让一个AxtiveXForm透明呢?
- 在DELPHI的循环中如何实现再次输入数值(对文本框,变量等)?
- 打印机问题
- 有一台条码打印机 品牌是:partner的PR-300,如何用delphi制作打印程序
var
hSession,hfile,hRequest:hInternet;
dwIndex,dwCodelen:dword;
dwcode:array[1..20] of char;
res:pchar;
begin
result:=false;
hsession:=Internetopen('inetURL:/1.0',INTERNET_OPEN_TYPE_PRECONFIG,nil,nil,0);
if assigned(hsession) then
begin
hfile:=InternetopenURL(hsession,pchar(url),nil,0,INTERNET_FLAG_RELOAD,0);
dwIndex:=0;
dwCodelen:=10;
httpQueryInfo(hfile,HTTP_QUERY_STATUS_CODE,@dwCode,dwCodelen,dwIndex);
res:=pchar(@dwcode);
result:=(res='200') or(res='320');
if assigned(hfile) then
INternetclosehandle(hfile);
internetclosehandle(hsession);
end;
end;例如:
CheckURL('http://www.zju.edu.cn/xyy/iloveyou.txt');