mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 09:17:08 +02:00
91 lines
1.7 KiB
JSON
91 lines
1.7 KiB
JSON
{
|
|
"name": "HTTP Request User-Agent test",
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "8a43a8dc-6e32-4a5e-9b3c-3a4d5e6f7a8b",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [160, 720]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://ua.example.com/default",
|
|
"options": {}
|
|
},
|
|
"id": "1aa13a8d-6e32-4a5e-9b3c-3a4d5e6f7a01",
|
|
"name": "HTTP Request default UA",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 3,
|
|
"position": [460, 600]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://ua.example.com/override",
|
|
"sendHeaders": true,
|
|
"headerParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "MyCustomAgent/1.0"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"id": "2bb13a8d-6e32-4a5e-9b3c-3a4d5e6f7a02",
|
|
"name": "HTTP Request custom UA",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 3,
|
|
"position": [460, 800]
|
|
}
|
|
],
|
|
"pinData": {
|
|
"HTTP Request default UA": [
|
|
{
|
|
"json": {
|
|
"ok": true,
|
|
"seen": "default"
|
|
}
|
|
}
|
|
],
|
|
"HTTP Request custom UA": [
|
|
{
|
|
"json": {
|
|
"ok": true,
|
|
"seen": "override"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request default UA",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "HTTP Request custom UA",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"versionId": "",
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true,
|
|
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
|
|
},
|
|
"tags": []
|
|
}
|