I understand that but still, I would go with multiple HTTP nodes. Anyways, check the links below. They have information on how to import the HTTP module into the function node.
ah yes, you can use a function node and make the HTTP Request from there. This works as long as you are self-hosting.
Set the env variable export NODE_FUNCTION_ALLOW_BUILTIN=request-promise-native
then in the function node, require the request module and made the HTTP Request using multipart/form-data. If you need help with the function node let me know.
You can check the post below as well.
Nice idea @Kirst , just tested it and yes. Check the example below. Keep in mind that in order to require an NPM package on the function node you have to set an env variable. By default require a module is not allowed. In the example, I used the request-promise-native module and told N8N to use it like this export NODE_FUNCTION_ALLOW_BUILTIN=request-promise-native. More info about that here .
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start"…
2 Likes