idhttp访问出现onnection closed gracefully
2021-03-04 17:28
标签:mod sed ant param signed tlsv1 redirect expected assign idhttp=new TIdHTTP(NULL); SSLIO=new TIdSSLIOHandlerSocketOpenSSL(); idhttp访问出现onnection closed gracefully 标签:mod sed ant param signed tlsv1 redirect expected assign 原文地址:https://www.cnblogs.com/suhq/p/13259914.html
idhttp->AllowCookies =true;
idhttp->HandleRedirects =true; //允许重定向
idhttp->ConnectTimeout =20000;
idhttp->ReadTimeout =20000;
//hoInProcessAuth, hoKeepOrigProtocol, hoForceEncodeParams, hoNonSSLProxyUseConnectVerb, hoNoParseMetaHTTPEquiv, hoWaitForUnexpectedData, hoTreat302Like303, hoNoProtocolErrorException, hoNoReadMultipartMIME, hoNoParseXmlCharset, hoWantProtocolErrorContent, hoNoReadChunked
idhttp->HTTPOptions //pv1_0, pv1_1
idhttp->ProtocolVersion =pv1_1;
//sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2
SSLIO->SSLOptions->Method = sslvTLSv1_2;
//sslmUnassigned, sslmClient, sslmServer, sslmBoth
SSLIO->SSLOptions->Mode = sslmClient;
SSLIO->ConnectTimeout =20000;
idhttp->IOHandler=SSLIO;
下一篇:Websocket
文章标题:idhttp访问出现onnection closed gracefully
文章链接:http://soscw.com/index.php/essay/60086.html