예제 #1
0
 internal static void CreateAndExecute(object oParams)
 {
     try
     {
         ProxyExecuteParams @params = (ProxyExecuteParams) oParams;
         Socket oSocket = @params.oSocket;
         ClientPipe clientPipe = new ClientPipe(oSocket, @params.dtConnectionAccepted);
         Session oSession = new Session(clientPipe, null);
         FiddlerApplication.DoAfterSocketAccept(oSession, oSocket);
         if ((@params.oServerCert == null) || oSession.AcceptHTTPSRequest(@params.oServerCert))
         {
             oSession.Execute(null);
         }
     }
     catch (Exception exception)
     {
         FiddlerApplication.ReportException(exception);
     }
 }