来自node.js服务器的Ajax POST [重复]

This question already has answers here:
                </div>
            </div>
                    <div class="grid--cell mb0 mt4">
                        <a href="/questions/6158933/how-is-an-http-post-request-made-in-node-js" dir="ltr">How is an HTTP POST request made in node.js?</a>
                            <span class="question-originals-answer-count">
                                (21 answers)
                            </span>
                    </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2014-01-28 22:55:12Z" class="relativetime">6 years ago</span>.</div>
        </div>
    </aside>

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.

</div>

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

https://npmjs.org/package/request

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