This one time, at band camp, Louis wrote:
>Hi Sluggers:
>
>When I run a script via browser to get the domain name of a website I use
>$ENV{'HTTP_HOST'}.
>
>How do I get the same domain name from the command line ?HTTP_HOST gets set in the environment by the webserver when it calls the CGI, thus HTTP_HOST is an environment variable. To set the HTTP_HOST variable from the command line, try HTTP_HOST=www.example.com ./cgi-program or export HTTP_HOST=www.example.com ./cgi-program to keep it persistent in your shell. -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
