今天研究一个APP,想抓一下包,结果老是提示网络错误,其中HTTP包是正常的,HTTPS包异常,具体错误如下:
After the client received notice of the established CONNECT, it failed to send any data!
经过网上查找,找到解决办法,经测试可行,分享给小伙伴们。
问题原因: fidder代理默认有 Connection: close
解决办法:
1、下载fiddler的脚本编辑器,下载地址如下:
http://www.telerik.com/download/fiddler/fiddlerscript-editor
安装以后重启,对脚本进行修改。
2、修改Fiddler的脚本,进行如下更改:
解决方法:(将 Connection: close 去除)
static function OnBeforeResponse(oSession: Session) { if (m_Hide304s && oSession.responseCode == 304) { oSession["ui-hide"] = "true"; } if (oSession.HTTPMethodIs("CONNECT") && oSession.responseCode == 200) { if (oSession.oResponse.headers.ExistsAndEquals("Connection", "close")) { oSession.oResponse.headers.Remove("Connection"); } } }
修改好以后,就可以进行抓包了。。
参考网站:
http://blog.csdn.net/shuzui1985/article/details/45842473
http://www.telerik.com/forums/ssl-negotiation-doesn't-initiate-for-some-traffic
from www.waitalone.cn.thanks for it.
- 左青龙
- 微信扫一扫
- 右白虎
- 微信扫一扫
评论