Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Domain URL in server variables? Same as Path_Info?

Reply
Thread Tools

Domain URL in server variables? Same as Path_Info?

 
 
Guest
Posts: n/a
 
      08-20-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a server on one domain the domain controller of a new domain Limited Wisdom MCSA 7 09-13-2006 02:18 AM



Advertisments