A ColdFusion user asked me (at MAX) how to get ColdFusion’s Ajax calls to use POST instead of the default GET. The answer, courtesy of ColdFusion team member Rakshith, is to use to define the proxy CFC, and then use the setHTTPMethod() method to set the method type. Here is Rakshith’s example:

5 thoughts

  1. This comes really handy with large amount of text being posted .. last month I learned about the setHTTPMethod() the hard way since I had a page that posted a large amount of text and I kept getting an error in IE (suprised?) but it was working in Firefox. So if you are getting an error when using IE, check that you are setting the http method to "POST".
    thanks for posting this Ben…

Leave a Reply