Need help constructing a html post request with code node

I’m trying to send all files from the previous node to an API , I should receive a single pdf in return.

I’m stuck at screenshot below.

Hi @mellesc, to make http requests in the code node you would want to use the respective helper function provided by n8n, as n8n might switch away from axios at some point.

Here’s a quick example sending a post request:

This is the request arriving on the receiving server:

Hope this helps!

1 Like

Thanks, I’ll give it a try and report back.

1 Like