Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Just as an option - you can also use 'params' instead of 'data' to append your data to the query string. It will work for GET. Commented Mar 26, 2014 at 11:49
  • @anvarik, can you tell me how to get this in the php side <?php print_r($_POST['message']); ?>, not showing the values Commented Mar 26, 2014 at 12:21
  • @RaviMone, I am not familiar with PHP, but just use the following angular code: $http.post('http://' + host + ':' + port + '/echo/html', $scope.newuser) it should post your user Commented Mar 26, 2014 at 12:48