> <cfoutput>#"
http://" & CGI.HTTP_HOST &
CGI.SCRIPT_NAME &
IIf(len(trim(CGI.QUERY_STRING)),DE('?'),DE('')) &
CGI.QUERY_STRING#</cfoutput>
Unless it's HTTPS, or running on a port other than 80... ;-)
I don't have access to an HTTPS-running server @ present,
otherwise I'd
provide a more helpful answer. However there are two
additional CGI
variables which get set to (something) if the request was
made via HTTPS.
To deal with the port, there is CGI.SERVER_PORT. If it's
other than 80 (or
443 if HTTPS), the one should include a colon and the port
number after the
HTTP_HOST value.
--
Adam