G'day.
If I do this in ColdFusion:
structKeyExists(cgi, 'http_referer'): [#structKeyExists(cgi,
'oompahloompah')#]<br />
structKeyExists(cgi, 'oompahloompah'): [#structKeyExists(cgi,
'oompahloompah')#]<br />
Or this, in ASP:
Request.ServerVariables("http_referer") : [<% Response.Write
Request.ServerVariables("http_referer") %>]<br />
Request.ServerVariables("oompahloompah") : [<% Response.Write
Request.ServerVariables("oompahloompah") %>]<br />
I get empty strings returned for both (or the correct referer, if there is
one, obviously
Now, I'd be keen for some kind person to tell me what they get if one does
the equivalent thing in PHP? (and if anyone else who does other web-type
languages out there wants to put their oar in, that'd be grand, too
I have to say I'm no so concerned about the 'oompahloompah' side of things,
just that I would expect the referer variable to *not exist* if there
wasn't a referer value passed back from the HTTP server, not for it to be
an empty string. I can see arguments both ways, and I'm not that fussed,
I'm just interested in how other systems work.
Cheers.
Adam