Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 152999

Re: Sending any non-POST-type request with data to CFC

$
0
0

mike124897 wrote:

 

In CF 11 (Developer Edition), non-POST-type requests with data to CFC files seem to get stuck in ColdFusion. I don't believe I've changed anything in CF administration that could affect this, and as far as I can tell I haven't done anything to IIS that would break it either. The issue occurs with both of the CF applications that I'm working on.

 

Requests to CFMs that contain data work using any of the CRUD methods (GET, POST, PUT, DELETE), and the IIS handlers are setup to accept all methods for both CFMs and CFCs.

 

Can anyone else verify whether this issue with requests to CFCs exists in their environment?

 

Example curl requests:

  1. # Requests to CFC with data 
  2. curl -d 'test=123' -X 'GET' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
  3. curl -d 'test=123' -X 'PUT' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
  4. curl -d 'test=123' -X 'DELETE' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
  5. curl -d 'test=123' -X 'POST' 'http://localhost/myapplication/component.cfc?method=test' # Works fine 

 

 

You complicate things with too many flags. You could just do something like

 

Get

curl "http://localhost/myapplication/component.cfc?method=test&myArg=123"

 

Post

curl --data "myData=someData" "http://localhost/myapplication/component.cfc?method=test&myArg=123"


Viewing all articles
Browse latest Browse all 152999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>