Fidder https抓包 失败问题解决

参考文档:

http://www.telerik.com/forums/ssl-negotiation-doesn%27t-initiate-for-some-traffic


进行抓包后发现https 不能正确建立,

After the client received notice of the established CONNECT, it failed to send any data!


fidder代理默认有

 Connection: close


解决方法:(将 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");
         }
     }
}

你可能感兴趣的:(android)