Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

log files and adding custom headers

$
0
0

in win2012r2, in the iis , there is new ability to add custom headers.

is there a way to write to the log file the soap request?

today i do it using c# code (and then appendToLog):

 XmlDocument xmlSoapRequest = new XmlDocument();

            // Get raw request body
            Stream receiveStream = HttpContext.Current.Request.InputStream;

            // Move to beginning of input stream and read
            receiveStream.Position = 0;
            using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8))
            {
                // Load into XML document
                xmlSoapRequest.Load(readStream);
            }

            return xmlSoapRequest.InnerXml;

is there any way to get the "stream" and write it to the log file?


Viewing all articles
Browse latest Browse all 780

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>