How to Read Raw Posts on "ColdFusion"

Adobe ColdFusion is both a program and a programming language. It is similar to PHP in that it can create Web-based applications. Starting with ColdFusion 8, it can incorporate PHP code. This can be useful if you want to run PHP’s “Raw Post” command. This will display the raw code when the command is called in your ColdFusion program. Incorporating it requires switching ColdFusion to PHP, then running the PHP code.

Instructions

    • 1

      Open your ColdFusion code where you want to place the "Read Raw Post" command.

    • 2

      Copy and paste the following three lines of code. They switch to PHP mode, read the raw data of the page on which you place the code, and then switch out of PHP mode:
      <cf_php>
      <?php $postdata = file_get_contents("php://input"); ?>
      </cf_php>

    • 3

      Save the ColdFusion code.

Related Searches:

References

Comments

Related Ads

Featured