//Fired to indicate when a response from a server has been received void WebBrower_ProtocolHandlerOnResponse(object sender, ProtocolHandlerOnResponseEventArgs e) { //if (this.FilterRequest && this.FilterAction.Count > 0) //{ // foreach (KeyValuePair<string, Func<string, string, bool>> keyValuePair in this.FilterAction) // { // if (keyValuePair.Value(keyValuePair.Key, e.URL)) // { // e.Cancel = true; // } // } //} if (this.IsRecordCookie) { //记录分析cookie string headers = e.ResponseHeaders; } //Debug.Print(">>>>>>ProtocolHandlerOnResponse=> " + e.URL); //+ "\r\nResponseHeaders >>\r\n" + e.ResponseHeaders); }
void m_csexwbCOMLib_ManagedAppOnResponse(string sURL, string sResponseHeaders, string sRedirectedUrl, string sRedirectHeaders, ref bool Cancel) { if (ProtocolHandlerOnResponse != null) { ProtocolHandlerOnResponseEventArgs args = new ProtocolHandlerOnResponseEventArgs(sURL, sResponseHeaders, sRedirectedUrl, sRedirectHeaders); ProtocolHandlerOnResponse(this, args); Cancel = args.Cancel; } }