# HTTP request node curl POST

**URL:** <https://community.n8n.io/t/http-request-node-curl-post/40668>\
**Category:** Questions\
**Tags:** node, http-request\
**Created:** [February 22, 2024, 7:02am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668 "2024-02-22T07:02:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![security\_sec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/security_sec/32/33531_2.png) [@security\_sec](https://community.n8n.io/u/security_sec)\
**Post date:** [February 22, 2024, 7:02am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/1 "2024-02-22T07:02:21Z")

</div>

Hy There!  
I’d like to get curl response from threatfox abuse.ch, from the website API doc they give curl command that I can used.

`curl -X POST https://threatfox-api.abuse.ch/api/v1/ -d '{ "query": "ioc", "id": 41 }'`

Error node said that method using is not allowed

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/3/331ece7520d6e5d3a6542ed7fcc1cc2ff09aae21.jpeg)

## Please share your workflow

Need assistance on how to make it right and get a response from the curl command, thanks!  
Regards

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 22, 2024, 7:02am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/2 "2024-02-22T07:02:22Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![security\_sec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/security_sec/32/33531_2.png) [@security\_sec](https://community.n8n.io/u/security_sec)\
**Post date:** [February 22, 2024, 7:03am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/3 "2024-02-22T07:03:48Z")

</div>

Additional information,  
I add curl in “Import cURL”

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/0/b0a0c13d25819ebcc874148827485736aeb3ff06.jpeg)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 22, 2024, 7:54am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/4 "2024-02-22T07:54:52Z")

</div>

Hey @security_sec,

That is interesting, I have it a test in curl and it worked and I get the same error when checking from n8n. I have changed the URL for another one to test against webhook.site and it looks like we are sending a post request so I think the API is objecting to something else…

Was about to hit send and tried again and I worked it out… When using import from curl we are removing the trailing slash for some reason, If you add that back into the URL it then works as expected. Testing without a slash in Curl shows a 301 so it looks like we don’t follow the redirect but adding that slash back should sort this out.

---

<div class="post-metadata">

**Author:** ![security\_sec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/security_sec/32/33531_2.png) [@security\_sec](https://community.n8n.io/u/security_sec)\
**Post date:** [February 22, 2024, 8:17am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/5 "2024-02-22T08:17:30Z")

</div>

Hey @Jon

Sorry, i’m a newbie at this.  
What do you mean by removing the trailing slash. Is it to change the URL in import from curl without the trailing slash? like this?

`curl -X POST https:threatfox-api.abuse.ch/api/v1/ -d '{ "query": "get_iocs", "days": 7 }'`

Is it work for you?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 22, 2024, 9:20am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/6 "2024-02-22T09:20:12Z")

</div>

Hey @security_sec,

Once importing from curl add a `/` to the end of the URL like the image below, When importing from curl we seem to be removing it but the API you are using needs it.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/7/b755eb0a15ee43f0b43cadf54721383bd1580ccb.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 29, 2024, 9:20am UTC](https://community.n8n.io/t/http-request-node-curl-post/40668/7 "2024-02-29T09:20:24Z")

</div>

Closed on February 29, 2024, 9:20am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
