>>It is a result of intentional design.
Ah ok.
Then I suppose that CFDUMP var="#cgi# will show only the exitence of
usual varables.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this
>>I believe what it is is that CF 'knows' it gets certain CGI vars, which
it puts in the CGI struct. If you ask for something CF doesn't
explicitly know about, it will query the web server for that variable,
and the web server will return an empty string no matter what you pass
it - try dumping 'c
nation :)
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Monday, November 14, 2005 8:40 AM
To: CF-Talk
Subject: Re: Is this a bug,... or an undocumented feature?
>>I suppose what's hapening is that there is no way to ask the HTTP
server if some variab
> So, it IS a flaw, if not a bug.
It is arguably a flaw, but certainly not a bug. It is a result of
intentional design.
It is also documented:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=ColdFusion_Documentation&file=part_dev.htm
Dave Watts
>>Notice that there are CGI vars visible to ASP, but not to CF.
>>This is all part of the mystery.
IMO there is no mystery: cgi variables are HTTP server creatures, no doubt.
But as far as CF is able to get the whole list of them, there is no
reason it could not say if one belongs to that list
10:40 AM
To: CF-Talk
Subject: Re: Is this a bug,... or an undocumented feature?
>>I suppose what's hapening is that there is no way to ask the HTTP
server if some variable is defined or not.
No, this is not what's hapening, since the structKeyExists function
seems to work well.
Also
>>I suppose what's hapening is that there is no way to ask the HTTP server
if some variable is defined or not.
No, this is not what's hapening, since the structKeyExists function
seems to work well.
Also, CFDUMP on cgi scope lists all of them, so CF manages to get the
list of all existing cgi v
>>In my experience the cgi variables are related to the webserver you
are using, for example you will have different cgi variables with iis
than you will with apache.
This is right. However CF is able to find them, whatever they are.
I suppose what's hapening is that there is no way to ask the H
In my experience the cgi variables are related to the webserver you
are using, for example you will have different cgi variables with iis
than you will with apache. Could this have something to do with it?
What webserver are you using?
On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote:
>
>>Application servers cannot know what CGI variables
are passed to it.
I don't see your point, when they are requested to use one of them, they
do find it, no?
So when I ask CF if it is defined, it shouldn't say yes if it is not.
This bug is present in CF5, CF6 and CF7.
--
___
>>What version of cf are you using claude?
I have all of them, well almost: CF5, CF6 and CF7, they all yield the
same result.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this addre
What version of cf are you using claude?
On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote:
> >>The structKeyExists function seems to work well
>
> This confirm that the flaw with isdefined is a bug.
>
> --
> ___
> REUSE CODE! Use custom tags;
> See htt
>>The structKeyExists function seems to work well
This confirm that the flaw with isdefined is a bug.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Th
On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote:
>
> CGI.whateverYouPutHere = [#CGI.whateverYouPutHere#]
> CGI.whateverYouPutHere not defined
>
>
> Always displays
> CGI.whateverYouPutHere = []
Hi,
The structKeyExists function seems to work well (tested with
ColdFusion MX 6.1 with
probably should not check for the existence of CGI variables for the
reason you noticed.
M!ke
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 13, 2005 9:25 PM
To: CF-Talk
Subject: Is this a bug,... or an undocumented feature?
It looks like ANY
It looks like ANY variable in the cgi scope is always defined, ie:
is always true, and #CGI.anythingYouPutHere# always return an empty string.
CGI.whateverYouPutHere = [#CGI.whateverYouPutHere#]
CGI.whateverYouPutHere not defined
Always displays
CGI.whateverYouPutHere = []
Is this normal
16 matches
Mail list logo