Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Get HTTP Header Values From Coldfusion?

Tags:

coldfusion

How can I get HTTP Header values from Coldfusion?

(ColdFusion version: 6.2..)

like image 920
finneycanhelp Avatar asked Dec 11 '10 13:12

finneycanhelp


People also ask

What is HTTP header value?

HTTP headers are the name or value pairs that are displayed in the request and response messages of message headers for Hypertext Transfer Protocol (HTTP). Usually, the header name and the value are separated by a single colon. HTTP headers are an integral part of HTTP requests and responses.

What is stored in HTTP header?

The Cookie HTTP request header contains stored HTTP cookies associated with the server (i.e. previously sent by the server with the Set-Cookie header or set in JavaScript using Document. cookie ). The Cookie header is optional and may be omitted if, for example, the browser's privacy settings block cookies.


1 Answers

I found the answer here in this post:

http://www.bennadel.com/blog/1425-Getting-Header-Values-From-A-ColdFusion-Request.htm

"Ben Nadel" had a great answer in there.

Similar example:

someVariable = getHttpRequestData().headers["User-Agent"];
like image 179
finneycanhelp Avatar answered Sep 30 '22 05:09

finneycanhelp