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
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.
  • true
  • false

Links more information about getHTTPRequestData

Sample code invoking the getHTTPRequestData function

Returns HTTP request headers and request body in structure format.


Fork me on GitHub