Getting the Full HTTP location from the Request

B

bobbyballgame

I need to pass an absolute, rather than relative URL to an item. For
example, say my default page is:
http://MyServer/MyApp/Default.asp, I may have to pass down a link to
http://MyServer/MyApp/MyLinks/MyLink.htm

but all I know is that it will be at AppUriBase + "/MyLinks/MyLink.htm"

How do I programatically come up with the proper AppUriBase from the
Request?

I have looked into the HTTP_HEADERS and I can think of some ways that would
work in my test environment, but I need to be sure that the Base that I get
will work in all situations. Is there a standard or best way to do that, or
does anyone know of specific pitfalls that should be avoided?

As an aside, this is a web application that will be rolled out and installed
by clients.

Thanks,
BB
PS: And we are talking Non .NET asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,824
Members
47,370
Latest member
desertedtyro29

Latest Threads

Top