By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 934 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

Domain URL in server variables? Same as Path_Info?

P: n/a
Could someone tell me if there is any reliable server variable that returns
the Domain Name + Path in ASP?

I have tried:

Request.serverVariables("URL")
Request.serverVariables("PATH_INFO")

Both Return:

/ParentFolder/SubFolder/File.asp

I want to get the following back:

www.mysite/parentfolder/subfolder/file.asp
The reason I ask is having to build string manipulation functions to strip
out relevant Parent folder and append www. prefix and trailing sub folders:

eg: "www." & ParentFolder & ".com" & SubPath

Is there an easier way to translate to handle server variables in my
applications rather than adding extra chunks of functions or having to build
a custom .COM or go to .NET?

There has to be a simpler way....?

Thanks
Jason
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.