S
skyhorse_zjj
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TFrm_Main.DownNetUpdateIni;<br>var<br> aURL,aFile:String;<br> FileStr:TStringList;<br> i:integer;<br>begin<br> FileStr:=TStringList.Create;<br> aURL := MyURL+'NetUpdate.ini';<br> FileStr.Add(IdHTTP1.Get(aURL));<br> FileStr.SaveToFile(WinPath+'NetUpdate.ini');<br> FileStr.Free;<br> NetIni:=TIniFile.Create(WinPath+'NetUpdate.ini');<br> with NetIni do<br> begin<br> ReadSection('FilesList',DownList);<br> NetVerStr:=ReadString('Version','Ver','');<br> end;<br> nDownFileCount:=DownList.Count;<br> DeleteFile(WinPath+'NetUpdate.ini');<br>end;<br><br>netupdate.ini是在服务器上的。远程读取时出现“HTTP/1.1 404 Not Found”的错误,麻烦大家给我分析分析为什么读取不到?是不是IIS需要做什么设置?