예제 #1
0
 protected override StreamProxy BuildRequestStreamProxy(StreamProxy.StreamProxyType streamProxyType, Stream source, Stream target, byte[] buffer)
 {
     if (OwaProxyRequestHandler.IsPLTPostRequest(base.ClientRequest))
     {
         return(new OwaPLTStreamProxy(streamProxyType, source, target, buffer, this));
     }
     return(base.BuildRequestStreamProxy(streamProxyType, source, target, buffer));
 }
예제 #2
0
 internal static void TryAddUnAuthenticatedPLTRequestPostDataToUriQueryOfIISLog(HttpContext httpContext)
 {
     if (httpContext != null && OwaProxyRequestHandler.IsPLTPostRequest(httpContext.Request) && httpContext.Response != null && httpContext.Response.StatusCode == 440 && httpContext.Request.InputStream != null)
     {
         try
         {
             using (StreamReader streamReader = new StreamReader(httpContext.Request.InputStream))
             {
                 string param = streamReader.ReadToEnd();
                 httpContext.Response.AppendToLog(param);
             }
         }
         catch (Exception)
         {
         }
     }
 }