I'm writing a CGI that is to run independently of whichever site it is on. I need to be able to get the http address into a variable. Any ideas?
The bit I need is domainname.com from the http://www.domainname.com
in the IE / FireFox address bar.
The CGI is located at the same address.