开发者

Drupal JSON Server and Services Module only returns Invalid Method

I have been trying to get a stock Drupal site up and running with JSON Server module and Services. After install I added the two modules and enabled them. When I use Curl from the command line to call system.connect or anything I only get Invalid Method.

curl --data method=system.connec开发者_StackOverflow中文版t http://localhost/services/json

This is what I am getting back.

{ "#error": true, "#data": "Invalid method " }


I remember having the same problem myself a while back. Your problem at the moment is that your post data does not have quotes.

curl --data 'method="system.connect"' http://localhost/services/json

If you have a look at this: http://drupal.org/node/305799 it should give you loads more info to get you going with services and the json server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜