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
0
votes
1 answer

Streaming PDF file from .NET Generic Handler generates Adobe Reader corruption error

I have a generic handler that serves files for download: Dim request As HttpRequest = context.Request Dim response As HttpResponse = context.Response response.ContentType = "application/octet-stream" …
Dom Vinyard
  • 2,038
  • 1
  • 23
  • 36
0
votes
1 answer

AJAX implementation for ASP and ASP.NET hybrid

A little setup: Our shop has a mixture of different platforms. Almost all of our web development is done in classic ASP. We have a WinForms application in development that is being written using the .NET 3.5 framework. The problem: I am writing a…
Anthony Potts
  • 8,842
  • 8
  • 41
  • 56
0
votes
1 answer

Large File Upload Using HttpHandler or HttpModule?

I have a webform application. It required to be able to upload large file (100MB). I intended to use httpHandler and httpModule to split the file to chunk. I also had a look at http://forums.asp.net/t/55127.aspx But it is a very old post and I've…
Dan An
  • 424
  • 9
  • 27
0
votes
1 answer

ASP.NET HttpHandler authentication problem in non-IE browser

i have written a http handler for uploading multiple files from flex application. In explorer it works properly, but in other browsers i have problem obiously with forms authentication.. this is log of the request from Firefox, Opera,…
Jan Remunda
  • 7,840
  • 8
  • 51
  • 60
0
votes
1 answer

IHttpHandler send cookie back to calling website

I have an ordering website that needs to make a set up request on a supplier site. For this i am using a WebHanlder (ashx file) to read the setup request in cXML using the HttpContext object which is working fine. One of the requirements is that we…
Andy Clark
  • 3,363
  • 7
  • 27
  • 42
0
votes
2 answers

ASP.NET HttpHandler mapping to Robots.txt without access to IIS

Is there a simple way to map /robots.txt to a HttpHandler using only the web.config? I've tried all sorts of changes to the httpHandlers tag but none have made any difference. All the examples require modifications to IIS site properties, which I…
Rob
  • 1,687
  • 3
  • 22
  • 34
0
votes
2 answers

Restful web service required but need to redirect into SharePoint

I am faced with the following situation and I do not know how to handle it. Any advice or ideas are welcome. Requirements: Provide a restful web service that handles a GET with parameters. Redirect the user to a SharePoint 2007 login page with…
Kelly Pritts
  • 75
  • 2
  • 9
0
votes
2 answers

Sharepoint 2010 does not invoke ProcessRequest of my custom HttpHandler

Well, I know it's IIS which is supposed to invoke it. Anyway; I have a Sharepoint solution which is supposed to return a special string when files with particular extensions are clicked on document libraries. In the corresponding web.config file I…
Natan
  • 2,816
  • 20
  • 37
0
votes
2 answers

Custom HTTP Handler for REST Requests

I'm sure this is an easy fix - but after hours of googling this, I haven't been able to find the answer. What I am trying to do is set up a custom handler that will handle all requests with a path of {domain}/services/*. I have a web…
jdbenn
  • 51
  • 2
  • 4
0
votes
2 answers

How can I programmatically modify an aspx file content before the handler handle it?

The reason I need to modify the content of an aspx (not physically, but change the content in the memory) is because there are certain custom tags I made needs to be parsed to the correct data before the entire aspx is handled by the HttpHandler. Is…
Lida Weng
  • 476
  • 6
  • 20
0
votes
0 answers

Sql - Reading images from DB

I keep getting the error image icon when reading images from my DB. Here is the HttpHandler code: public void ProcessRequest(HttpContext context) { .... //After we got the data table: byte[] image = (byte[])dt.Rows[0]["Picture"]; …
Jong
  • 9,045
  • 3
  • 34
  • 66
0
votes
1 answer

Insert ASP Tags and UserControls into CMS Content

Here's the "main question" I guess: Is there a ".NET way" to get at a request very early on (either via HttpHandler or HttpModule) and inject standard asp.net markup, either in the form of standard controls, or user/custom controls, and have the…
FirstDivision
  • 1,340
  • 3
  • 17
  • 37
-1
votes
1 answer

How to handle requests from IIS to Apache?

I need to create something like proxy between IIS and Apache So hostheaders I would like to set up on IIS because it's Windows 2003 Server but I have some applications that should be hosted under Apache. In this case I think that I should set up…
omoto
  • 1,212
  • 1
  • 17
  • 24
-1
votes
1 answer

IHttpModule problems

I've asked a question regarding creating an IIS logger, but am still having a couple of issues: Original message is lost Response message is not captured Would it be at all possible to get these 2 sorted out? IHttpHandler: using System.Web; using…
Raytrace
  • 5
  • 4
-1
votes
2 answers

Golang. How to handle errors from http.HandleFunc?

I made some wrapping aroung routing func (p Page) MainInitHandlers() { http.HandleFunc("/", p.mainHandler) http.HandleFunc("/save", p.saveHandler) } If something wrong will happen inside my hadlers (mainHandler, saveHandler), can I get it…
Kroning
  • 19
  • 2