MC,

The tag @HTTPATTRIBUTE allows access to this information, however it is already 
parsed for you, so you will need to reassemble it:

I should probably add a synonym for the full URL to this tag.

A full URL would be:

HTTP<@IFEQUAL <@HTTPATTRIBUTE server_port> 443>S</@IF>://<@HTTPATTRIBUTE 
server_name>/<@HTTPATTRIBUTE path_args><@IFNOTEMPTY <@HTTPATTRIBUTE 
http_search_args>>?<@HTTPATTRIBUTE http_search_args></@IF>

(that's all one line - the email may wrap it oddly)

You also have the options of getting the full header (<@HTTPATTRIBUTE 
fullheader>) and then parsing the URL out of it yourself, but that may be more 
difficult.

Robert

-----Original Message-----
From: MC Tay [mailto:[email protected]]
Sent: Friday, August 15, 2014 2:21 PM
To: [email protected]
Subject: TeraScript-Talk: URL path

HI:

Is there a tag to get the actual URL?

Say, if I landed on a page and the URL is 
http://www.somewhere.com/path1/path2/and-so-on

I want to capture the actual url with a tag. I remember I did that long time 
ago and can't remember how to do it now.

Thanks!

MC




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to