Questions tagged [httphandler]

HttpHandlers are classes that implement the IHttpHandler and IHttpAsyncHandler interfaces. This section describes how to create and register HttpHandlers and provides examples of a synchronous handler, an asynchronous handler, and a handler factory.

ASP.NET Request Processing

Introduces ASP.NET handling of HTTP requests.

Creating HttpHandlers

Discusses the creation of synchronous and asynchronous HttpHandlers.

Registering HttpHandlers

Describes how ASP.NET is configured to call an HttpHandler.

HttpHandler Factory

Describes how to generate a new handler instance for each HTTP request.

Related Sections

HTTP Runtime Support

Provides an overview of how to use IHttpModule and IHttpHandler interfaces. 

HttpModules

Provides an overview of HttpModules. 
1249 questions
17
votes
3 answers

httpModules not working on iis7

I have the following module public class LowerCaseRequest : IHttpModule { public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(this.OnBeginRequest); } public void Dispose() { } public…
roncansan
  • 2,310
  • 6
  • 27
  • 34
16
votes
2 answers

How do I add an HttpHandler to the web.config?

I wrote a httphandler to handle all XSLT requests. The name of the handler is XSLTHandler.cs. web.config
qinking126
  • 11,385
  • 25
  • 74
  • 124
16
votes
6 answers

Unit testing http handlers?

My current project based in Asp .net makes considerable use of Http handlers to process various requests? So, is there any way by which I can test the functionality of each of the handlers using unit test cases? We are using Nunit and Moq framework…
MockedMan.Object
  • 275
  • 1
  • 3
  • 13
16
votes
7 answers

IIS 7, HttpHandler and HTTP Error 500.21

On IIS 7, I'm trying to use custom HttpHandler for my ASP.NET web application. I use pipeline mode "classic", .NET version is 4.0.30319, my web.config configuration for the handler is:
Mikee
  • 626
  • 1
  • 10
  • 23
15
votes
6 answers

How to POST data to ASP.NET HttpHandler?

I am trying to send a large chunk of data over to a HTTP handler. I can't send it using GET because of the URL length limit so I decided to POST it instead. The problem is that I can't get at the values. context.Request.Form shows that it has 0…
Ali Kazmi
  • 3,610
  • 6
  • 35
  • 51
15
votes
3 answers

How to set up HTTPHandler for python logging

I'm trying to use HTTPHandler class of standard python logging library to send logs. I need to make a https post request with basic credentials(username and password). This is how i'm setting up the HTTPHandler- host = 'example.com' url =…
saz
  • 955
  • 5
  • 15
  • 26
15
votes
6 answers

Receiving "Path 'OPTIONS' is forbidden." Exception in ASP.NET website

I am getting the error System.Web.HttpException: Path 'OPTIONS' is forbidden. since we moved our website over to a new server setup. I am unable to recreate the error but I am receiving emails for this exception at least a few times a day. Any ideas…
Greg
  • 7,233
  • 12
  • 42
  • 53
13
votes
6 answers

Create PNG image with C# HttpHandler webservice

I'd like to be able to create a simple PNG image, say of a red square using a c# web based service to generate the image, called from an
Guy
  • 9,720
  • 7
  • 38
  • 42
13
votes
1 answer

Custom HttpHandler not firing, returning 404 in ASP.NET MVC Application

I don't know if it is relevant that this is happening in an MVC website but thought I'd mention it anyway. In my web.config I have these lines:
Peter
  • 14,221
  • 15
  • 70
  • 110
13
votes
2 answers

What is the verb="*"?

Can any one tell me , when we register the custom HTTPHander in web.config like below in this What is the meaning of the verb="*" and what is the it's use?
Vijjendra
  • 24,223
  • 12
  • 60
  • 92
13
votes
2 answers

Usage of global variables with Http handlers in Golang

I know there are some questions and posts/articles regarding this question, but from my newbie view, not exactly. The thing is, I've got a main program listening to a port and redirecting the calls to a specific handler. The typical structure: func…
jcasado94
  • 185
  • 1
  • 1
  • 7
13
votes
3 answers

Removing Unused HTTP Handlers for Better Performance & Security

Where can I get a list of what all of the default IIS HTTP handlers do? I need documentation!! I have read a few blogs which recommend removing dozens of unused HTTP handlers for performance and security reasons. E.g. Removing the…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
13
votes
3 answers

ASP.NET - Dynamically register an HttpHandler in code (not in web.config)

Possible Duplicate: Any way to add HttpHandler programatically in .NET? Is there a way I can dynamically register an IHttpHandler in C# code, instead of having to manually add it to the system.web/httpHandlers section in the web.config. This may…
Sunday Ironfoot
  • 12,840
  • 15
  • 75
  • 91
13
votes
3 answers

How can Request Validation be disabled for HttpHandlers?

Is it possible to disable request validation for HttpHandlers? A bit of background - I've got an ASP.NET web application using an HttpHandler to receive the payment response from WorldPay. The IIS logs show that the handler is being called…
Mun
  • 14,098
  • 11
  • 59
  • 83
13
votes
1 answer

pass jquery json into asp.net httphandler

Just don't get it what i'm doing wrong.. i've been looking for dozens of similar questions, yet still got misunderstandings... when i call CallHandler function from JS, i always get 'Request Failed' alert. please help me. JS/Jquery: function…
ailmcm
  • 373
  • 1
  • 5
  • 15
1 2
3
83 84