You can clone with
When I call a webservice implemented by Geddy,I get the error code "405". I have set the "content-type".
The log shows below:
[Mon, 24 Sep 2012 09:58:43 GMT] 127.0.0.1 - - [Mon Sep 24 2012 17:58:43 GMT+0800 (CST)] "POST /users/register.json 1.0" 405 27 "-" "Shockwave Flash"
Please everyone can help me?Thanks.
A 405 means you're trying to hit a route you've actually defined but with a method it does not support. What does your router.js look like?
I should add, ActionScript is known for not supporting a number of the normal REST HTTP methods (PUT and DELETE), so you have to use an HTTP method-override. Use a POST, and either set the "X-Http-Method-Override" header with the value you want, or use the "_method" parameter in the query string.
All right.Use a POST.But the "X-Http-Method-Override" means ?
X-Http-Method-Override is an HTTP header you can set in the request. From Flash it's probably just easier to use the "_method" URL parameter.
Thanks a lot!