AdobeStock_455007340

Time Values in HTTP Headers

If you ever need to embed a time value within an HTTP header (perhaps using the tag) you must make sure that the time value is formatted correctly (according to RFC 1123). The simplest way to do this is to use the GetHttpTimeString() function – pass it a date/time, and it’ll return a properly formatted string. (Applies to: ColdFusion 4 or later)

Leave a Reply