CGI Variables in Templates

This page shows the CGI variables being displayed using OUTPUT elements in a template.

OUTPUT Element Template Results
<output name="http_time" alt="<br>"> 18:28:11
<output name="http_date" alt="<br>"> Thu Jun 26 2025
<output name="http_referer" alt="<br>"> https://soupermail.sourceforge.net/examples/
<output name="http_config_path" alt="<br>"> /examples/
<output name="http_remote_host" alt="<br>">
<output name="http_remote_addr" alt="<br>"> 127.0.0.1
<output name="http_server_name" alt="<br>"> soupermail.sourceforge.net
<output name="http_server_port" alt="<br>"> 80
<output name="http_user_agent" alt="<br>"> Wget/1.21.2
<output name="http_ref" alt="<br>"> REF:988023
<output name="http_remote_user" alt="<br>">
<output name="http_remote_ident" alt="<br>">
<output name="http_host" alt="<br>"> soupermail.sourceforge.net
<output name="http_from" alt="<br>">

Return to the examples page.


The Soupermail configuration file that made this page looks like this:

# The use of the blank template is useful here, because we're
# not actually sending any data in the form.
blank : cgivars.txt

The template that made this page is cgivars.txt.