我用的是 delphi2010 控件是 idhttp,TIdCookieManager,TIdSSLIOHandlerSocketOpenSSLidhttp 的属性:选了 hoKeepOrigProtocol,选了 HandleRedirects,Request.CacheContorl 为 no-cache, Request.Connection 为 Keep-Alive ,
Request.ContentType 为 application/x-www-form-urlencoded , Request.UserAgent 为 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)在登录一个 https 开头的网址时,老是报 Socket error 10060 错误求大神看看!!怎么解决!!Delphisocket控件
Request.ContentType 为 application/x-www-form-urlencoded , Request.UserAgent 为 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)在登录一个 https 开头的网址时,老是报 Socket error 10060 错误求大神看看!!怎么解决!!Delphisocket控件
然后SSL还需要两个DLL文件。
IdHTTP1.Connect(10000); //连接10秒 2013-07-16 加入后报socket错误
IdHTTP1.ReadTimeout :=10000; //读取10秒