473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

HTTP Handler?

RSH
Hi,

I have a situation where my company wants to implement a part of our website
that needs to process requests such as:
http://www.mydomain.com/<ServiceCenterName>

I want to build a template page that will ultimately handle the request, but
Im not sure how to go about interception the initial request.

Im thinking that I need to establish if the request doesn't have an
extension, then query the ServiceCenterName against the database. If it is
legitimate than set a session variable and point them to the template page
which will handle it from there.

My problem is...how do I intercept the request and send it to my logic? Im
vaguely familiar with the concept of a HTTP Handler...would that do the
trick here?

Thanks,
Ron
Apr 30 '07 #1
1 950
If a request doesn't have an extension (e.g., .ashx, .aspx, .asp, etc) then
you will need to use an ISAPI filter at the IIS level to perform "Url
rewriting".
UrlRewrite Lite is a free one you can try.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"RSH" wrote:
Hi,

I have a situation where my company wants to implement a part of our website
that needs to process requests such as:
http://www.mydomain.com/<ServiceCenterName>

I want to build a template page that will ultimately handle the request, but
Im not sure how to go about interception the initial request.

Im thinking that I need to establish if the request doesn't have an
extension, then query the ServiceCenterName against the database. If it is
legitimate than set a session variable and point them to the template page
which will handle it from there.

My problem is...how do I intercept the request and send it to my logic? Im
vaguely familiar with the concept of a HTTP Handler...would that do the
trick here?

Thanks,
Ron
Apr 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
5
by: Chris Hughes | last post by:
I have an environment with many thousands of client machines uploading data files several times each day to a web server via HTTP PUT. To avoid disk I/O (for performance), I am implementing a...
3
by: shapper | last post by:
Hello, I have been using Http handlers and I have two questions: 1. What does Property IsReusable really does and when should I use it? 2. And why should I add an httpHandler to my...
6
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post by:
I am trying to create a simple HTTP handler in ASP.net 2.0. I am using VS 2005. I am trying to handle a custom extension file givein in the URL. I have also created the following entry in the...
0
by: swigerb | last post by:
I have created an HTTP Module and an HTTP Handler. The HTTP Module is responsible for encrypting and decrypting all querystring parameters, which works fine. The HTTP Handler is to act as a proxy...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.