Request vs. ServerVariables, some same?

Neal

Forum Admin
Staff member
Joined
Jun 2, 2004
Messages
123
Location
VA
Programming Experience
10+
Is there any difference between Request.QueryString and Request.ServerVariables("QUERY_STRING")



Is there any difference in Request.Urlreferrer and Request.ServerVariables("HTTP_REFERER")



I would like to get just the base URL, no page name or parameters (query string). For example:

http://www.nc-software.com/download.aspx comes in, I would like to return http://www.nc-software.com

http://secure.nc-software.com/detail.aspx?ID=4 I would like to return http://secure.nc-software.com

What's the best method to get the base URL?



How can I efficiently retrieve just the Page name such as "Download.aspx" or "Detail.aspx" in #3 above?


Thanks
 
Top Bottom