1

I have Node.js server with Socket.IO, which communicate with Python server (Django).
I need to perform POST from the node.js server (on specific method) to the Django server.
I cannot use any jquery function because it require window document.

Any other idea how can i send data to the Django from Node.js with POST method and check if it success?

Thanks.

1
  • i am checking it right now, i will update here. Thanks. Commented Jan 28, 2014 at 21:56

2 Answers 2

1

You want to look at the HTTP package. Specifically use the ClientRequest class to issue the POST request

Sign up to request clarification or add additional context in comments.

1 Comment

not me.. i am reading about the packages you told me right now..
1

https://npmjs.org/package/request

request.post('http://service.com/script', {form:{key:'value'}}, function(err,response,body){...});

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.