大佬教程收集整理的这篇文章主要介绍了delphi – TIdHTTPServer是否兼容Microsoft BITS,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
现在这是我们遇到的问题,我们的程序正在请求XML文件,并且看到有可用的更新.然后它创建一个BITS作业下载它,然而BITS保持报告下载失败.我们可以使用相同的URL和IE / Firefox / Chrome下载文件.
所以我的问题:
TIdhttpServer是否兼容BITS?
我问这个是因为我已经发现有这些下载要求的位工作.
HTTP Requirements for BITS Downloads
这里是
IdhttpHeaderInfo.pas aprox行770
procedure TIdEntityRange.SetText(const AValue: String); var LValue,S: String; begin LValue := Trim(Avalue); if LValue <> '' then begin S := Fetch(LValue,'-'); {do not localizE} if S <> '' then begin FStartPos := StrToIntDef(S,-1); FEndPos := StrToIntDef(Fetch(Lvalue),-1); FSuffixLength := -1; end else begin FStartPos := -1; FEndPos := -1; FSuffixLength := StrToIntDef(Fetch(Lvalue),-1); end; end else begin FStartPos := -1; FEndPos := -1; FSuffixLength := -1; end; end;
这应该是
procedure TIdEntityRange.SetText(const AValue: String); var LValue,'-'); {do not localizE} if S <> '' then begin FStartPos := StrToInt64Def(S,-1); FEndPos := StrToInt64Def(Fetch(Lvalue),-1); FSuffixLength := -1; end else begin FStartPos := -1; FEndPos := -1; FSuffixLength := StrToInt64Def(Fetch(Lvalue),-1); end; end else begin FStartPos := -1; FEndPos := -1; FSuffixLength := -1; end; end;
一个Remy修复
以上是大佬教程为你收集整理的delphi – TIdHTTPServer是否兼容Microsoft BITS全部内容,希望文章能够帮你解决delphi – TIdHTTPServer是否兼容Microsoft BITS所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。