# Translation of Curl command to HTTP Request

**URL:** <https://discourse.nodered.org/t/translation-of-curl-command-to-http-request/52101>\
**Category:** General\
**Created:** [11 October 2021 18:30 UTC](https://discourse.nodered.org/t/translation-of-curl-command-to-http-request/52101 "2021-10-11T18:30:35Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 October 2021 16:56 UTC](https://discourse.nodered.org/t/translation-of-curl-command-to-http-request/52101/17 "2021-10-15T16:56:55Z")

</div>

you need to declare msg.headers as an object  
add

```auto
msg.headers = {}; 

```

before the other references to msg.headers.

---

_[View the full topic](https://discourse.nodered.org/t/translation-of-curl-command-to-http-request/52101)._
