补充下POSTURL_BANKAPPLY是'https://upay.10010.com/web/BankCharge/BankChargeApply.action'.

解决方案 »

  1.   

    idhttp1实现已经初始化过
    IdHTTP1.ReadTimeout := 30000;  //超时
      IdHTTP1.HandleRedirects := True; //支持重定向
      IdHTTP1.Request.CacheControl := 'no-cache'; //不缓存
      IdHTTP1.Request.AcceptEncoding   := '';// 'gzip, deflatee'; 压缩格式,如果不需要,就置空
      IdHTTP1.Request.Host := HOSTURL; //主机网址
      IdHTTP1.HTTPOptions := IdHTTP1.HTTPOptions + [hoKeepOrigProtocol];//设置协议
      IdHTTP1.ProtocolVersion := pv1_1;
      IdHTTP1.Request.Connection := 'Keep-Alive';