Skip to main content
Inspiring
July 1, 2008
Answered

How to send long string to cfc without encountering error?

  • July 1, 2008
  • 1 reply
  • 235 views
I posted a different question about this, but maybe it was phrased too complex, because no one responded. Is there anyway to get a large amount of text to a cfc? If I put it in a javascript string and try to send it, I get URi too long because the function is turned into an http GET method and turned into a url string which obviously doesnt work because of the limit on URi lengths.

Any ideas? Any way to call a cfc without using a get? This has been boggling my mind for days now - it would seem to me there would have to be SOME way to get large strings to a cfc. Right? No? I hope so!! ;)

Thanks,
Dave
This topic has been closed for replies.
Correct answer Dstharding
I found the setHTTPMethod parameter used when initializing a cfc for cfajaxproxy - you can change it to POST which obviously solves the problem. Adobe, make POST the default like CFAjax, AJaxCFC, etc!!! Maybe theres some obscure reason to have GET default, who knows...

1 reply

DsthardingAuthorCorrect answer
Inspiring
July 1, 2008
I found the setHTTPMethod parameter used when initializing a cfc for cfajaxproxy - you can change it to POST which obviously solves the problem. Adobe, make POST the default like CFAjax, AJaxCFC, etc!!! Maybe theres some obscure reason to have GET default, who knows...