delphi连接ftp的问题
我用ftp上传一个文件到ftp服务器上,前几天都用的好好的,后面一直到现在连不上ftp了
-------------------------------------
IdHTTP1:=TIdHTTP.Create(GetIP); //为防止断网后idhttp无法启动起来,所以每次都创建一个新的
IdHTTP1.AllowCookies:=True;
IdHTTP1.ReadTimeout:=3000;
flag4:=0;
//以ftp格式上传上去
if idFTP1.Connected then
try
IdFTP1.Quit;
finally
end
else
with IdFTP1 do try
Username:='hztfdt';
Password:='20080512';
Host:='www.hztianfu.com.cn';
Connect(True,5);
finally
end;
flag4:=1;//flag4=1说明上传到服务器成功
-------------------------
测试显示flag4一直是0没有变成过1;地址密码都没有改过,不知道是哪里出来问题是在找不到,请大侠帮忙!!!
把 Connect(True,5); 调成 Connect(True,3000);就好了。
相关问答:
已知Python 中:
s = unicode("测试", "gb2312")
s = u'\u6d4b\u8bd5'
print s
测试
在Delphi里面如何将\u6d4b\u8bd5这样的还原成Gb2312的汉字呢?
找到个方法
......
向各位高手求助。
我用delphi2009编写了一个管理系统,使用的是access数据库。现在想通过多人一起录入数据后,将数据导出,导出的数据库包含多个相同的表。再将导出的数据依次导入到同一个数据库的相同表中,导入 ......
'Select * into '+TempTableName+' from OpenDataSource(''Microsoft.JET.OLEDB.4.0'',''Data Source='
+ExcelFilePath+';Mode=Read;Extended Properties=Ex ......
求 delphi webserivice 调用例子
服务端编写:新建"WebServices-->SOAP Server Application-->ISAPI/NSAPI Dynamic Link Library","Service name"填写你要的服务名,如"SendS ......