Picture of Paul Silver

Paul Silver

Making websites for companies and helping advertise them

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

Paul Silver. November 2003

© 2024 Paul Silver & Silver Web Services Ltd