Adventures in bad variable names

11/25/2008

There are many built-in, always-there variable scopes in CF, including #cgi#, #form#, #url#, etc., and one does well to avoid using these names for anything other than their intended purpose.  However, I was doing a CFHTTP call (in CF8) and set the result attribute to 'http' (the result attribute allows you to specify the return variable name rather than receive the 'cfhttp' default) and immediately had issues. 

I discovered, to my surprise, that 'http' is synonymous with 'cgi' - at least under CF8/IIS6.  I actually would have expected it to be synonymous with 'cfhttp' (I seem to recall that 'http' was the fixed return variable name from cfhttp calls in earlier versions of CF?).

Anyway, if I ever need cgi environment variable values I use, of course, #cgi#.  I don't ever recall using #http# and never suspected it existed.  Begs the question why synonymous scope names even exist.

Anyway, weird.


3 comment(s)
Posted by Kevin J. Miller in:ColdFusion

3 Comments

gucci outlet

gucci outlet wrote on 07/03/10 10:34 AM

A lifeguard to visitors to protest: I notice you have three days, you cannot in urine wang swimming pool.
Wang: everybody in the http://www.gucci-zone.com/ gucci outlet swimming pool.
The lifeguard: yes! Sir, but only if you stand on the board in the urine...

http://www.thebest2u.net gucci bags
china handy

china handy wrote on 08/06/10 7:11 PM

efox-shop the best place to buy dual SIM dual standby phone. The efox-shop service is good, and the full range, such as chinesische handy kaufen china handy kaufen Großhandel Handy Grosshandel Handy Großhandel Handys chinesische handy TV Handy Chinesische Handys welcome to purchase http://www.efox-shop.com <a href="http://www.efox-shop.com"target=blank>chinesische handy kaufen china handy tv handy Chinesische Handys</a>

Add your comment





Leave this field empty: