IHttpHandler and witing to IIS Logs

  • Thread starter Thread starter want 2 Learn
  • Start date Start date
W

want 2 Learn

Guest
I am trying to do :

<%@ WebHandler Language="C#" Class="test1" %>

using System;
using System.Web;
using System.Xml;
using System.Net;
using System.Xml.Linq;

public class test1 : IHttpHandler
{

public void ProcessRequest(HttpContext context)
{
if (context.Request.InputStream != null)
{
System.IO.StreamReader stream = new System.IO.StreamReader(context.Request.InputStream);
string result = stream.ReadToEnd();
context.response.AppendToLog(result);

the result is not written to the log.

should i change something?

Continue reading...
 
Back
Top