Show all CGI variables for ColdFusion

There are a lot of handy CGI variables accessible in ColdFusion, like CGI.HTTP_USER_AGENT, which tells you what browser someone is using to look at your website.

The code below will tell you what CGI variables are availalbe on your server. Just put it in a page and run it to see what you've got:

<cfdump var='#cgi#'>

You can also put this on a page where you want to check what is being sent through without having to write exact checking code.

More code articles

Useful books
Cover of Mastering ColdFusion
Mastering ColdFusion MX
Amazon UK | USA
Cover of Programming ColdFusion MX
Programming ColdFusion MX
Amazon UK | USA
Cover of ColdFusion X Web Application Construction Kit
ColdFusion X Web Application Construction Kit
Amazon UK | USA

Paul Silver. November 2003


Silver Web Services Ltd

© 2017 Paul Silver