How to make a post request to a meteor server from android application

I am making an android application in which I want to post some data to a web server for a chat service. I am thinking of using meteor which is based on node.js for the back end as well front end. How do I make a post request to node server in a meteor application from my android device?

Are you sure this is really what you want to do for a chat application?

Don't forget Meteor handles bi-directional communications between the client and server for you.

It's much more likely that you want to simply add the chat text to the database with a Collection insert call, with a Meteor Method call, or look also at Arunoda's meteor-streams smart package.

All 3 options will work faster and be easier to code, than relying on POST requests (don't forget, by default Meteor leverages an open WebSocket connection, when available).

You didn't mentioned if you are doing native android or using cordova for android. If you are using cordova the you can make http calls by Meteor's http API. See docs.

Sample POST request using meteor, you have to import http package as meteor add http:

Meteor.http.call("POST", 
                 "http://your.serverurl.com/path",
                 {data: {some: "json", stuff: 1}},
                 function (error, result) {
                   if (result.statusCode === 200) {
                     //do something
                   }
                 });

Or if you are doing native android app. you can do this by Java HttpPost class. See this example