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

Getting the Full HTTP location from the Request

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
Jul 19 '05 #1
1 1220
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" <so*****@microsoft.com> wrote in message
news:ep**************@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

Jul 19 '05 #2

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

Similar topics

5
by: Nathan Sokalski | last post by:
I need to get the full URL of the current page in ASP. When using Request.ServerVariables("URL") anything after the filename (such as a #section1 to jump to an area on the page or data submitted...
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
4
by: Larry Tate | last post by:
I am wanting to get those cool html error pages that ms produces when I hit an error in asp.net. For instance, when I get a compilation error I get an html error page that shows me the ...
3
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
1
by: simbarashe | last post by:
Hie could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as...
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
8
by: illuzion | last post by:
ok I keep getting this error: Parse error: syntax error, unexpected T_VARIABLE in /home/illuzion/public_html/BAMF/contactus.php on line 38 and this error is possibly on other lines could...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.