WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007, 04:09 PM
corporateface corporateface is offline
WebProWorld Pro
 

Join Date: May 2004
Location: Texas
Posts: 244
corporateface RepRank 0
Default EXTRACTING FULL URL FROM ADDRESS BAR

How do I extract the full url from the address bar using ASP or VBscript?

Purpose ... I need to know if I am on an HTTPS protocol or an HTTP protocol.

Thanks
__________________
www.corporateface.com
Custom Website Design
No Templates
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 05:15 PM
sunpost sunpost is offline
WebProWorld New Member
 

Join Date: May 2007
Posts: 21
sunpost RepRank 0
Default

Request.ServerVariables("HTTPS") will return off or on
__________________
Have a nice day
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 05:28 PM
corporateface corporateface is offline
WebProWorld Pro
 

Join Date: May 2004
Location: Texas
Posts: 244
corporateface RepRank 0
Default

You Rock !
__________________
www.corporateface.com
Custom Website Design
No Templates
Reply With Quote
  #4 (permalink)  
Old 05-10-2007, 05:41 PM
sunpost sunpost is offline
WebProWorld New Member
 

Join Date: May 2007
Posts: 21
sunpost RepRank 0
Default

You might find the script below useful. It will display all the server variables:
Code:
<%
    For Each sv in Request.ServerVariables
       Response.Write sv & " == " & Request.ServerVariables( sv ) & "
"
    Next
%>
__________________
Have a nice day
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: address, bar, extracting, full, url



Thread Tools
Display Modes

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

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



Search Engine Friendly URLs by vBSEO 3.0.0