On Sat, 15 Jan 2005 12:29:35 +0800, Brett Payne-Rhodes <[EMAIL PROTECTED]> wrote: > When I run <cfdump var="#cgi#" label="CGI"> I get a long list of CGI > variables *except* it doesn't show 'cgi.request_uri'. Similarly if I > simply loop over the cgi collection I don't see 'cgi.request_uri'.
CGI is a magic scope. Only a certain number of CGI variables are passed to CF with the request and those are what you see in CFDUMP / looping over the scope. If you specifically request a different CGI variable, CF initiates a callback through the connector, asking the web server for the value. Note also that the set of CGI variables available varies with the web server in use (another reason why many CGI variables don't seem to exist until you explicitly ask for them). > Is this a bug in CF? Does CF hold some kind of internal list of the > variables that it expects to find in the 'CGI' collection and uses that > to index the collection for loop/dump processing? Yes, effectively. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 5 invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
