Delphi 2007 IXMLHTTPRequest Time out issue
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Delphi 2007 and have imported MSXML6_TLB. I'm using IXMLHTTPRequest object to send request to server. Example: XMLHttp := CoXMLHTTP60.Create; try XMLHttp.open('POST', URL, False, EmptyParam, EmptyParam); XMLHttp.setRequestHeader('Content-Type', 'text/xml;charset=UTF-8'); XMLHttp.send(reqXMLDoc.XML.Text); //--> timeout in 10 secs if (XMLHttp.readyState = 4) then StrStream.WriteString(UTF8Encode(XMLHttp.responseText)); XMLHttp.send() keeps timing out if response takes more than 10 secs. I've tested this in other systems and it works