Kill request without sending any response or error to the browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxwaGFwYWdl?=

    Kill request without sending any response or error to the browser

    Hello,

    I want to examine the HttpContext of the submitted requests. If the context
    is validated, no problem I execute ProcessRequest. But if the context
    doesn't match, I want to stop the request execution (I mean close the process
    and clean it in memory). I don't want to return any error or any content to
    the webbrowser (I don't care if the browser is still waiting for a response
    until its timeout setting).
    I only find a way to raise an error to the webbrowser, but I want to
    dispose the request without send a response to the client.

    Thanks in advance for your help.
  • Fernando Rodriguez

    #2
    Re: Kill request without sending any response or error to the browser

    just call context.Respons e.End()


    "Alphapage" <Alphapage@disc ussions.microso ft.comwrote in message
    news:67D0994E-36BB-4CAB-B274-9AB4988F4A28@mi crosoft.com...
    Hello,
    >
    I want to examine the HttpContext of the submitted requests. If the
    context
    is validated, no problem I execute ProcessRequest. But if the context
    doesn't match, I want to stop the request execution (I mean close the
    process
    and clean it in memory). I don't want to return any error or any content
    to
    the webbrowser (I don't care if the browser is still waiting for a
    response
    until its timeout setting).
    I only find a way to raise an error to the webbrowser, but I want to
    dispose the request without send a response to the client.
    >
    Thanks in advance for your help.

    Comment

    • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

      #3
      RE: Kill request without sending any response or error to the browser

      with ii6, there is no way. iis has the pipe open to the client, not asp.net

      when its an asp.net page, iis opens a pipe to the asp.net worker process,
      sends the input and reads the reponse. there is no protocol to tell iis to
      close the connection without sending a fin.


      -- bruce (sqlwork.com)


      "Alphapage" wrote:
      Hello,
      >
      I want to examine the HttpContext of the submitted requests. If the context
      is validated, no problem I execute ProcessRequest. But if the context
      doesn't match, I want to stop the request execution (I mean close the process
      and clean it in memory). I don't want to return any error or any content to
      the webbrowser (I don't care if the browser is still waiting for a response
      until its timeout setting).
      I only find a way to raise an error to the webbrowser, but I want to
      dispose the request without send a response to the client.
      >
      Thanks in advance for your help.

      Comment

      Working...