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

Re: Getting the Full HTTP location from the Request by Ray

Ray
Thu Feb 05 10:47:32 CST 2004

Use the "To get the entire URL" part of this FAQ but just do not include the
part about SCRIPT_NAME since you are specifying a different one.

http://www.aspfaq.com/show.asp?id=2072

Ray at work

"bobbyballgame" <someone@microsoft.com> wrote in message
news:ep2D6aA7DHA.3804@tk2msftngp13.phx.gbl...
> 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
>
>