Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

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

$
0
0

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:

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

# Requests to CFM with data
curl -d 'test=123' -X 'GET' 'http://localhost/myapplication/component.cfm' # Works fine
curl -d 'test=123' -X 'PUT' 'http://localhost/myapplication/component.cfm' # Works fine
curl -d 'test=123' -X 'DELETE' 'http://localhost/myapplication/component.cfm' # Works fine
curl -d 'test=123' -X 'POST' 'http://localhost/myapplication/component.cfm' # Works fine

# Requests without data
curl -X 'GET' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
curl -X 'PUT' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
curl -X 'DELETE' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
curl -X 'POST' 'http://localhost/myapplication/component.cfc?method=test' # Works fine

Viewing all articles
Browse latest Browse all 5794

Trending Articles



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