getHTTPRequestData

Returns HTTP request headers and request body. The resulting structure contains the following keys:
content (the request body),
headers (a structure of request headers),
method (same as cgi.request_method),
protocol (same as cgi.server_protocol).

getHTTPRequestData() → returns struct

Argument Reference

includeBody boolean
Required
Default: false

Whether return the body or not.

NOTE: This can only be done once.
If you expect the body to contain content which causes an exception in ColdFusion, set it to false as well and process it yourself.
Values:
  • true
  • false

Links more information about getHTTPRequestData

Examples
Sample code invoking the getHTTPRequestData function

Returns HTTP request headers and request body in structure format.

 writeDump(GetHttpRequestData());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub