[delphi]ssl connection closed gracefully
来源:互联网 发布:mac office快捷键大全 编辑:程序博客网 时间:2024/04/30 02:57
之前写了一个基于ssl的API接口程序,原先用得好好的,也有段时间没有用过了,在解析的时候,出现了一个Connection Closed Gracefully的错误提示,并且程序中断了后面的代码执行,通过抓包,发现数据是得到了正确的返回的,由于基本功比较弱,一下不太明白是什么原因导致,只能去找搜索引擎,结果无功而返。
后来突然想到,这样的情况应该是服务器端给了一个断开连接的信息,会不会是因为http协议版本的原因?默认idhttp在post的时候都是使用的pv1_0版本,也就是http/1.0,通过修改为1.1版本后,软件正常了。下面是核心代码部分:
IdHTTP1.HTTPOptions := IdHTTP1.HTTPOptions + [hoKeepOrigProtocol]; //必须有这行才使设置协议版本生效 IdHTTP1.ProtocolVersion := pv1_1;附一篇关于http1.0与2.0的区别的文章:
http://blog.csdn.net/forgotaboutgirl/article/details/6936982
- [delphi]ssl connection closed gracefully
- delphi的connection closed Gracefully错误
- delphi的connection closed Gracefully错误
- connection closed gracefully问题
- Indy:Connection Closed Gracefully
- 关于Connection Closed Gracefully问题
- Idhttp get baidu 错误 connection closed Gracefully
- 关于Indy TIdTCPServer控件出现 connection closed gracefully 错误的处理
- XE8-indy10中关于Connection Closed Gracefully的源码与解读
- javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
- connection closed
- Remote host closed connection during handshake和SSL peer shut down incorrectly报错的解决方法
- The underlying connection was closed:Could not establish trust relationship for the SSL/TLS secure
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- TightVNC Connection Closed
- securecrt ssh connection closed
- ssh_packet_read: Connection closed
- map 和 unordered_map以char * 为key
- VS2008环境下编译使用SGI STL(using stlport 5.2.1)
- Android 自定义类库打包jar
- 什么是三极管的倒置状态及其作用!
- 操作系统中的进程与线程
- [delphi]ssl connection closed gracefully
- java从键盘输入数据——解析
- Oracle Pipelined Table Functions
- jquery表格排序插件
- tomcat 配置介绍
- delete this的使用
- [分布式文件系统]Ceph原理介绍
- 用Python写一个简单的单向链表(包含头尾指针)
- Event事件对象