Hi,

I had installed service module (project/services) in 3 local sites. When I go to /admin/build/services/browse/node.view and they all work.
I wrote a simple php code to test the node.view method.

The first 2 sites (run on acquia deck) work but not the 3rd one (run on wamp).
I don't think this makes any difference. But who knows? Maybe there is some modules Acquia preinstalled should be included in the 3rd site.

My php codes connects the sites using curl_setopt().

When I test the first 2 sites, the following code is used individually and it produces json data of a node correctly.
curl_setopt($ch, CURLOPT_URL, 'http://localhost:8082/services/json');
curl_setopt($ch, CURLOPT_URL, 'http://xxxx.localhost:8082/services/json');

When I test the 3rd site, I got error 'Invalid method'.
curl_setopt($ch, CURLOPT_URL, 'http://localhost/xxxxx_dev/drupal/drupal617/services/json'); (The homepage is at http://localhost/xxxxx_dev/drupal/drupal617.)

Since it is using the same code for testing, I wonder why the 3rd site is giving the error.

Thanks for any help in advance.

nobody click here