# Curl Command change to http post in Angular

**URL:** <https://forum.codewithmosh.com/t/curl-command-change-to-http-post-in-angular/23794>\
**Category:** Angular\
**Created:** [November 22, 2023, 9:24am UTC](https://forum.codewithmosh.com/t/curl-command-change-to-http-post-in-angular/23794 "2023-11-22T09:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calvin](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Calvin](https://forum.codewithmosh.com/u/Calvin)\
**Post date:** [November 22, 2023, 9:24am UTC](https://forum.codewithmosh.com/t/curl-command-change-to-http-post-in-angular/23794/1 "2023-11-22T09:24:28Z")

</div>

Dear all big brothers,

I am so green on javascript and angular, I have a technical problem, pls help, thanks

- I have curl command, but don’t know how change to http post in component in Angular,

Dummy curl command as below;

curl --location ‘[https://api.boss.qa.abc.com/abc\_com/send\_out](https://api.boss.qa.abc.com/abc_com/send_out)’   
–header ‘Tvb-Boss-Client-Token: wj6hvadewvwvwohdk1cU1’   
–header ‘Content-Type: application/json’   
–data ‘{“mobile\_number”: “98765432”,  
“area\_code”: “852”,  
“message”: “Have a nice day !”}’
