2

how can i call a PHP web service from node.js . thanks in advance.

1
  • 1
    Can you define that PHP service a bit more? Is it a PHP-based service on a *different server, or PHP on the *same server? My answer would be very different for each case. Commented Mar 20, 2012 at 17:14

1 Answer 1

3

You can use node-httpclient to perform get requets to any server, not necceserialy PHP.

var client = new httpcli.httpclient();  
var url = "http://domain.com/get/bananas"
client.perform(url, "GET", function(result) {
// Result is the response of the server
}, null);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.