Obtain entire URL using CGI variable

Hi All,Which CGI variable is used to fetch the entire URL including http://. I have looked all the possible ways. Is there any other formula which can help me in getting this information?

I am aware of window.location.href :slight_smile:

Regards,

Priti.

Subject: Obtain entire URL using CGI variable.

Query_String - The information that follows the ?, or in some cases the !* in the URL that referenced this script.

Query_String_Decoded - Returns the same as Query_String, but decodes the string. For example, if a URL references a view name that contains characters that are not allowed in a URL, the name is encoded. This CGI variable decodes that string. Path_Info_Decoded is available to Domino applications only.

:slight_smile:

Subject: RE: Obtain entire URL using CGI variable.

Thanks for the responses. But I actually need to know whether the protocol is http:// or https:// . Thats the main reason why I need to know the entire URL.

Subject: RE: Obtain entire URL using CGI variable.

Well U need to get first five characters of the field Query_String, and u can match the value then.

Subject: RE: Obtain entire URL using CGI variable.

Use the CGI field HTTPS. It will be a OFF or ON result…

hth,

Wendall

Subject: RE: Obtain entire URL using CGI variable.

Thanks a lot :slight_smile:

Subject: Take a look in the Designer Help too

There is a table of CGI variables and what they contain.

Subject: Obtain entire URL using CGI variable.

You have the CGI-variables Server_Name and Path_Info. To make complete url build a string as follows “http://<server_name><pathe_info>”