ColdFusion CGI or Application variables
1.保留字
- Because ColdFusion is not case-sensitive, all of the following are reserved words: IS, Is, iS, and is.
- The following language elements are keywords in a script syntax:
- for
- default
- switch
- case
- continue
- import
- finally
- final
- local (inside function declaration)
- interface
- pageencoding
- return
- try
- catch
- in
- else
- if
- while
- do
- break
- The following elements are reserved in both script and tags:
- function
- true
- false
- final
- abstract
- null – can be used as variable names but not as User-Defined Function name.
2.CGI variables
CGI server variable |
Description |
---|---|
SERVER_SOFTWARE |
Name and version of the information server software answering the request (and running the gateway). Format: name/version. |
SERVER_NAME |
Server's hostname, DNS alias, or IP address as it appears in self-referencing URLs. |
GATEWAY_INTERFACE |
CGI specification revision with which this server complies. Format: CGI/revision. |
SERVER_PROTOCOL |
Name and revision of the information protocol this request came in with. Format: protocol/revision. |
SERVER_PORT |
Port number to which the request was sent. |
REQUEST_METHOD |
Method with which the request was made. For HTTP, this is Get, Head, Post, and so on. |
PATH_INFO |
Extra path information, as given by the client. Scripts can be accessed by their virtual pathname, followed by extra information at the end of this path. The extra information is sent as PATH_INFO. |
PATH_TRANSLATED |
Translated version of PATH_INFO after any virtual-to-physical mapping. |
SCRIPT_NAME |
Virtual path to the script that is executing; used for self-referencing URLs. |
QUERY_STRING |
Query information that follows the ? in the URL that referenced this script. |
REMOTE_HOST |
Hostname making the request. If the server does not have this information, it sets REMOTE_ADDR and does not set REMOTE_HOST. |
REMOTE_ADDR |
IP address of the remote host making the request. |
AUTH_TYPE |
If the server supports user authentication, and the script is protected, the protocol-specific authentication method used to validate the user. |
REMOTE_USER AUTH_USER |
If the server supports user authentication, and the script is protected, the username the user has authenticated as. (Also available as AUTH_USER.) |
REMOTE_IDENT |
If the HTTP server supports RFC 931 identification, this variable is set to the remote username retrieved from the server. Use this variable for logging only. |
CONTENT_TYPE |
For queries that have attached information, such as HTTP POST and PUT, this is the content type of the data. |
CONTENT_LENGTH |
Length of the content as given by the client. |
GI client variable |
Description |
---|---|
HTTP_REFERER |
The referring document that linked to or submitted form data. |
HTTP_USER_AGENT |
The browser that the client is currently using to send the request. Format: software/version library/version. |
HTTP_IF_MODIFIED_SINCE |
The last time the page was modified. The browser determines whether to set this variable, usually in response to the server having sent the LAST_MODIFIED HTTP header. It can be used to take advantage of browser-side caching. |
HTTP_URL | The URL path in an encoded format. |
CGI client certificate variable |
Description |
---|---|
CERT_SUBJECT |
Client-specific information provided by the web server. This data typically includes the client's name, e-mail address, and so on, for example:O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98", OU = Persona Not Validated, OU = Digital ID Class 1 - Microsoft, CN = Matthew Lund, E = mlund@.com |
CERT_ISSUER |
Information about the authority that provided the client certificate, for example:O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)98", CN = VeriSign Class 1 CA Individual Subscriber-Persona Not Validated |
判断浏览器是否支持CGI
<cfscript>myServer=cgi.SERVER_NAME;if (myServer==cgi.SERVER_NAME)WriteOutput("Server exists");elseWriteOutput("Server does not exist");
</cfscript>
显示所有的CGI变量
<cfscript>WriteDump(cgi);</cfscript>
3.Application and session variables
Application.myvariable
Session.myvariable
ColdFusion provides the following predefined application and session variables:
Application.ApplicationName |
但怎么加的参数目前还没明白
最近在做的项目,系统学习并记录下,基本都是官网查看
官网:https://helpx.adobe.com/coldfusion
Fiddle:https://cffiddle.org/app/file?
ColdFusion CGI or Application variables相关推荐
- 动态web技术(二) --- CGI
本篇是系列文章中的第二篇,讲述大名鼎鼎的CGI技术.CGI 全称为Common Gateway Interface (通用网关接口),目的是能够让服务器能够方便的调用外部程序.CGI本身是一套协议和规 ...
- php rfc3986规范,「PSR 规范」PSR-7 HTTP 消息接口规范
「PSR 规范」PSR-7 HTTP 消息接口规范 HTTP消息接口 此文档描述了 RFC 7230 和 RFC 7231 HTTP 消息传递的接口,还有 RFC 3986 里对 HTTP 消息的 U ...
- 学习笔记-B/S - Exploits
B/S - Exploits 免责声明 本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关. 大纲 各类论坛/CMS框架 AEM 74CMS dedeC ...
- 经典教程翻译系列: Mach-II新手指南(上)
作者: Trond Ulseth (www.waterswing.com/blog) 译者: Franks 绪言 略(译者按:主要是作者回顾这几年的编程生活,以及为什么写这篇教程的原因.原因主要是,关 ...
- php rfc3986规范,PSR-7 HTTP 消息接口规范 上篇
HTTP消息接口 此文档描述了 RFC 7230 和 RFC 7231 HTTP 消息传递的接口,还有 RFC 3986 里对 HTTP 消息的 URIs 使用. HTTP 消息是 Web 技术发展的 ...
- php psr 7,PHP(PSR-7) HTTP 消息接口规范
「PSR 规范」PSR-7 HTTP 消息接口规范 HTTP消息接口 此文档描述了 RFC 7230 和 RFC 7231 HTTP 消息传递的接口,还有 RFC 3986 里对 HTTP 消息的 U ...
- 推荐60+ Flex开发参考网站
推荐60+ Flex开发参考网站 下面是一些好的Flex开发的网站或者Flex资源,如果你使用Flex开发,可以参考一下. 网上找的,可以参考参考!呵呵 新手入门参考: Adobe Flex 3 - ...
- 发现WinSRV2003SP1并没有包含ASP+Access的BUG更新
看了Windows Server 2003 SP1的LIST后,发现解决Win2003上运行ASP+Access的BUG补丁没有包含在里面.很郁闷,真的很郁闷!苦苦等待的关键性更新却没有包含,看来微软 ...
- lamp介绍,wordpress,phpmyadmin,discuzz安装
LAMP: 一般是linux+apache+mariadb(mysql)+3P(p: php, perl, python) LAMMP: memcached 静态资源:静态内容:客户端从服务器 ...
- 自定义MIME类型支持FLV的相关设置
网络空间支持FLV的相关设置其实很简单,就是自定义一个MIME类型 一般虚拟主机管理里面都有这个选项 自定义MIME类型 扩展名: .flv MIME类型: flv-application/octet ...
最新文章
- 执行公式_法院诉讼费、保全费、执行费速算公式
- python中选择结构通过什么语句实现_Python中选择结构通过什么语句实现
- 计算机常用端口一览表
- 【NOIP2015模拟10.22】最小代价
- 机器的速度与主频之间的关系
- 高并发解决方案_高并发提交订单的解决方案
- 在 Ubuntu 环境下实现插入鼠标自动关闭触摸板
- vb如何用代码对Excel的指定区域实行保护
- B00001 C语言动态存储分配空间作为数组
- 《搭建你的数字积木 数字电路与逻辑设计》(1)
- 大华摄像机调试以及保存视频
- mysql修改唯一索引
- ios实现类似魔兽小地图功能 在
- frp内网穿透(Mac远程连接公司windows)
- 投毒后门防御阅读笔记,What Doesn‘t Kill You Makes You Robust (er) Adversarial Training against Poisons and Back
- instagram获取图片地址和视频地址
- IP地址和MAC地址, 路由器, 交换机和集线器
- 学 Python 和学 Java ,哪个好找工作?
- b3dm ~ ( Batched 3D Model )
- 福岛第1核电站2号3号反应堆辐射量急剧上升
热门文章
- 雨课堂知识点总结(十六)
- Android使用adb截屏
- iOS使用masonry快速将一组view在superview中等宽排列
- Windows 10 驱动开发 及 驱动签名
- mysql中插入数据时Duplicate entry ‘‘ for key ‘PRIMARY‘的解决方案
- el-option显示value而不是lable的问题
- 清华大学生计算机系学生就业方向,这5所大学计算机专业全球顶尖,就业前景广阔,毕业就能拿高薪!...
- Jquery 禁止键盘Backspace键
- 输入关键字生成对联_百度“智能春联”玩出新年味 输入关键词秒出春联
- MongoDB Bulk write operation error on server duplicate key error问题解决