473,385 Members | 1,355 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,385 software developers and data experts.

Getting the real requested URL

If I request:

http://www.test.com/

which is implictly:

http://www.test.com/index.aspx

Request.Url contains the index.aspx portion regardless of whether or not the
client requested the index.aspx page or not. I want to distinguish between
the implicit and explicit requested pages. The Request.Headers has the
requested GET page stripped too... How can I get the actual page the client
requested, not what the web server is interpretting?

Thanks
Nov 18 '05 #1
2 1897
I don't think it is possible because IIS handles the request and
modified the url string before passing it to the ASP.NET ISAPI filter.

The only way to get the original url is to create an ISAPI filter (Not
HttpModule), and handle the OnUrlMap event. You can then insert this
original url into the header or querystring, and pass it to your
ASP.NET web application.

Tommy,

"Nobody" <no****@nowhere.com> wrote in message news:<uf**************@TK2MSFTNGP10.phx.gbl>...
If I request:

http://www.test.com/

which is implictly:

http://www.test.com/index.aspx

Request.Url contains the index.aspx portion regardless of whether or not the
client requested the index.aspx page or not. I want to distinguish between
the implicit and explicit requested pages. The Request.Headers has the
requested GET page stripped too... How can I get the actual page the client
requested, not what the web server is interpretting?

Thanks

Nov 18 '05 #2
Another option could be to get the script name rather than the URL....

Patrice

--

"Tommy" <We**********@Hotmail.com> a écrit dans le message de
news:a8**************************@posting.google.c om...
I don't think it is possible because IIS handles the request and
modified the url string before passing it to the ASP.NET ISAPI filter.

The only way to get the original url is to create an ISAPI filter (Not
HttpModule), and handle the OnUrlMap event. You can then insert this
original url into the header or querystring, and pass it to your
ASP.NET web application.

Tommy,

"Nobody" <no****@nowhere.com> wrote in message

news:<uf**************@TK2MSFTNGP10.phx.gbl>...
If I request:

http://www.test.com/

which is implictly:

http://www.test.com/index.aspx

Request.Url contains the index.aspx portion regardless of whether or not the client requested the index.aspx page or not. I want to distinguish between the implicit and explicit requested pages. The Request.Headers has the
requested GET page stripped too... How can I get the actual page the client requested, not what the web server is interpretting?

Thanks


Nov 18 '05 #3

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

Similar topics

4
by: Andreas | last post by:
Hi! I'm writing a program that has support for multiple language, so far swedish and english is requested. Everything is fine, but the program has to be able to run on computers with...
303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
10
by: MasterBlaster | last post by:
We are in the initial stages of design analysis and I'm trying to come up with some ideas on how to handle the feature our users are requiring from the new application. We are using VB.NET/window...
26
by: Pravesh | last post by:
Hi: is there a way to get current system time in milliseconds... which functions and headers?? thanks pravesh
3
by: Ted Burhan | last post by:
Hi all, I'm trying to display a real-time data in one form or another (i.e. animation/graphic file, or just a text) in asp.net. The data for the images/text is retrieved from a SQL Server...
2
by: JIM.H. | last post by:
Hello, I know the user I give in the connection string is the database admin, why am I getting the following message? Server Error in '/' Application...
11
by: John | last post by:
Hi I need to access to a web service method that returns a dataset type. Is there a way to store this remote dataset as an xml file locally, using vb.net, so I can open a local dataset on the...
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.