POST generation curl fixed - not angularjs call