Adam Cameron
cfhttp(url="<https://example.com>", result="responseFromExample")
writeDump(responseFromExample.statusCode)
CF: 200 OK
Lucee: variable [RESPONSEFROMEXAMPLE] doesn't exist on line cfhttp(url="https
I suspect this is a case that Lucee is getting confused because there's a possibility that there is more to the cfhttp
"tag" than just the initial statement... it could optionally have a following block.
CF gets it right: the next token after the initial cfhttp
is not a {
, therefore that musta been the end of the statement, and the next token is the beginning of a new statement.
Lucee should also be able to do this.
Yes?Mark Takata (Adobe)
04/15/2022, 3:35 PMCF gets it right
Adam Cameron
bdw429s
04/18/2022, 6:22 PMbdw429s
04/18/2022, 6:22 PM;
makes Lucee "work"Adam Cameron