n8n-nodes-tls-request 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,155 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TlsRequest = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const node_tls_client_1 = require("node-tls-client");
|
|
6
|
+
// Global flag to track TLS initialization
|
|
7
|
+
let tlsInitialized = false;
|
|
8
|
+
let tlsInitPromise = null;
|
|
9
|
+
let initError = null;
|
|
10
|
+
/**
|
|
11
|
+
* Initialize TLS client (singleton pattern to avoid multiple initializations)
|
|
12
|
+
*/
|
|
13
|
+
async function ensureTLSInitialized() {
|
|
14
|
+
if (tlsInitialized) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (initError) {
|
|
18
|
+
throw new Error(`TLS initialization previously failed: ${initError.message}`);
|
|
19
|
+
}
|
|
20
|
+
if (tlsInitPromise) {
|
|
21
|
+
return tlsInitPromise;
|
|
22
|
+
}
|
|
23
|
+
tlsInitPromise = (async () => {
|
|
24
|
+
try {
|
|
25
|
+
await (0, node_tls_client_1.initTLS)();
|
|
26
|
+
tlsInitialized = true;
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
initError = err;
|
|
30
|
+
throw err;
|
|
31
|
+
}
|
|
32
|
+
})();
|
|
33
|
+
return tlsInitPromise;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Parse cURL command and extract request details
|
|
37
|
+
* Handles multi-line curl commands with various flag formats
|
|
38
|
+
*/
|
|
39
|
+
function parseCurlCommand(curlCommand) {
|
|
40
|
+
const result = {
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: '',
|
|
43
|
+
headers: {},
|
|
44
|
+
body: undefined,
|
|
45
|
+
cookies: undefined,
|
|
46
|
+
};
|
|
47
|
+
if (!curlCommand || curlCommand.trim() === '') {
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
// Normalize the curl command - handle line continuations and extra whitespace
|
|
51
|
+
let normalizedCmd = curlCommand
|
|
52
|
+
.replace(/\\\n/g, ' ') // Handle line continuations (backslash + newline)
|
|
53
|
+
.replace(/\n/g, ' ') // Remove newlines
|
|
54
|
+
.replace(/\s+/g, ' ') // Normalize whitespace
|
|
55
|
+
.trim();
|
|
56
|
+
// Extract URL - try different patterns
|
|
57
|
+
// Pattern 1: URL right after curl command
|
|
58
|
+
const urlMatch1 = normalizedCmd.match(/curl\s+(?:-X\s+\w+\s+)?['"]?([^'"\s]+)['"]?/i);
|
|
59
|
+
if (urlMatch1 && urlMatch1[1].startsWith('http')) {
|
|
60
|
+
result.url = urlMatch1[1].trim();
|
|
61
|
+
}
|
|
62
|
+
// Pattern 2: URL in quotes after flags
|
|
63
|
+
const urlPatterns = [
|
|
64
|
+
/['"](https?:\/\/[^'"]+)['"]/i,
|
|
65
|
+
/['"](http?:\/\/[^'"]+)['"]/i,
|
|
66
|
+
];
|
|
67
|
+
for (const pattern of urlPatterns) {
|
|
68
|
+
const match = normalizedCmd.match(pattern);
|
|
69
|
+
if (match) {
|
|
70
|
+
result.url = match[1];
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// Extract method (-X or --request)
|
|
75
|
+
const methodMatch = normalizedCmd.match(/(?:^|\s)-X\s+(['"]?)(\w+)\1/i) ||
|
|
76
|
+
normalizedCmd.match(/--request\s+(['"]?)(\w+)\1/i);
|
|
77
|
+
if (methodMatch) {
|
|
78
|
+
result.method = methodMatch[2].toUpperCase();
|
|
79
|
+
}
|
|
80
|
+
else if (normalizedCmd.includes('--data') || normalizedCmd.includes('-d') || normalizedCmd.includes('--data-raw')) {
|
|
81
|
+
// If there's a body but no explicit method, default to POST
|
|
82
|
+
result.method = 'POST';
|
|
83
|
+
}
|
|
84
|
+
// Extract headers (-H or --header)
|
|
85
|
+
// Match -H 'header: value' or -H "header: value"
|
|
86
|
+
const headerRegex = /-H\s+['"]([^'"]+)['"]/g;
|
|
87
|
+
let headerMatch;
|
|
88
|
+
while ((headerMatch = headerRegex.exec(normalizedCmd)) !== null) {
|
|
89
|
+
const headerValue = headerMatch[1];
|
|
90
|
+
const colonIndex = headerValue.indexOf(':');
|
|
91
|
+
if (colonIndex > -1) {
|
|
92
|
+
const key = headerValue.substring(0, colonIndex).trim();
|
|
93
|
+
const value = headerValue.substring(colonIndex + 1).trim();
|
|
94
|
+
// Handle cookies specially - extract from Cookie header
|
|
95
|
+
if (key.toLowerCase() === 'cookie') {
|
|
96
|
+
result.cookies = result.cookies || {};
|
|
97
|
+
value.split(';').forEach(cookie => {
|
|
98
|
+
const eqIndex = cookie.indexOf('=');
|
|
99
|
+
if (eqIndex > -1) {
|
|
100
|
+
const cookieKey = cookie.substring(0, eqIndex).trim();
|
|
101
|
+
const cookieValue = cookie.substring(eqIndex + 1).trim();
|
|
102
|
+
if (cookieKey) {
|
|
103
|
+
result.cookies[cookieKey] = cookieValue;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
result.headers[key] = value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
// Extract body from various data flags
|
|
114
|
+
// Priority: --data-raw > --data-binary > --data > -d
|
|
115
|
+
const bodyPatterns = [
|
|
116
|
+
{ pattern: /--data-raw\s+['"]([\s\S]*?)['"](?:\s|$)/, group: 1 },
|
|
117
|
+
{ pattern: /--data-binary\s+['"]([\s\S]*?)['"](?:\s|$)/, group: 1 },
|
|
118
|
+
{ pattern: /--data\s+['"]([\s\S]*?)['"](?:\s|$)/, group: 1 },
|
|
119
|
+
{ pattern: /-d\s+['"]([\s\S]*?)['"](?:\s|$)/, group: 1 },
|
|
120
|
+
];
|
|
121
|
+
for (const { pattern } of bodyPatterns) {
|
|
122
|
+
const regex = new RegExp(pattern.source, 'i');
|
|
123
|
+
const match = normalizedCmd.match(regex);
|
|
124
|
+
if (match && match[1] !== undefined) {
|
|
125
|
+
result.body = match[1];
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// Alternative: extract body from multi-line commands where data might be on new lines
|
|
130
|
+
if (!result.body) {
|
|
131
|
+
const dataRawMatch = curlCommand.match(/--data-raw\s+['"]([\s\S]*?)['"]\s*$/m);
|
|
132
|
+
if (dataRawMatch) {
|
|
133
|
+
result.body = dataRawMatch[1].replace(/\\\n/g, '\n').trim();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// Extract cookies from -b or --cookie flag
|
|
137
|
+
const cookieMatch = normalizedCmd.match(/-b\s+['"]([^'"]+)['"]/) ||
|
|
138
|
+
normalizedCmd.match(/--cookie\s+['"]([^'"]+)['"]/);
|
|
139
|
+
if (cookieMatch) {
|
|
140
|
+
const cookieValue = cookieMatch[1];
|
|
141
|
+
result.cookies = result.cookies || {};
|
|
142
|
+
cookieValue.split(';').forEach(cookie => {
|
|
143
|
+
const eqIndex = cookie.indexOf('=');
|
|
144
|
+
if (eqIndex > -1) {
|
|
145
|
+
const cookieKey = cookie.substring(0, eqIndex).trim();
|
|
146
|
+
const cookieValue = cookie.substring(eqIndex + 1).trim();
|
|
147
|
+
if (cookieKey) {
|
|
148
|
+
result.cookies[cookieKey] = cookieValue;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
6
155
|
class TlsRequest {
|
|
7
156
|
constructor() {
|
|
8
157
|
this.description = {
|
|
@@ -18,17 +167,53 @@ class TlsRequest {
|
|
|
18
167
|
inputs: ['main'],
|
|
19
168
|
outputs: ['main'],
|
|
20
169
|
properties: [
|
|
170
|
+
{
|
|
171
|
+
displayName: 'cURL Import',
|
|
172
|
+
name: 'curlImportNotice',
|
|
173
|
+
type: 'notice',
|
|
174
|
+
default: '',
|
|
175
|
+
placeholder: 'Paste a cURL command below to automatically populate the request fields. The cURL command will be parsed when the node executes.',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'cURL Command',
|
|
179
|
+
name: 'curlCommand',
|
|
180
|
+
type: 'string',
|
|
181
|
+
typeOptions: {
|
|
182
|
+
rows: 6,
|
|
183
|
+
},
|
|
184
|
+
default: '',
|
|
185
|
+
placeholder: "curl 'https://api.example.com' -H 'Accept: application/json' ...",
|
|
186
|
+
description: 'Paste a cURL command here. When provided, it will override the manual URL, Method, Headers, and Body settings below.',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: 'Manual Configuration',
|
|
190
|
+
name: 'manualConfigNotice',
|
|
191
|
+
type: 'notice',
|
|
192
|
+
default: '',
|
|
193
|
+
displayOptions: {
|
|
194
|
+
show: {
|
|
195
|
+
curlCommand: [''],
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
placeholder: 'Configure the request manually below (ignored when cURL command is provided)',
|
|
199
|
+
},
|
|
21
200
|
{
|
|
22
201
|
displayName: 'Method',
|
|
23
202
|
name: 'method',
|
|
24
203
|
type: 'options',
|
|
204
|
+
displayOptions: {
|
|
205
|
+
show: {
|
|
206
|
+
curlCommand: [''],
|
|
207
|
+
},
|
|
208
|
+
},
|
|
25
209
|
options: [
|
|
210
|
+
{ name: 'DELETE', value: 'DELETE' },
|
|
26
211
|
{ name: 'GET', value: 'GET' },
|
|
212
|
+
{ name: 'HEAD', value: 'HEAD' },
|
|
213
|
+
{ name: 'OPTIONS', value: 'OPTIONS' },
|
|
214
|
+
{ name: 'PATCH', value: 'PATCH' },
|
|
27
215
|
{ name: 'POST', value: 'POST' },
|
|
28
216
|
{ name: 'PUT', value: 'PUT' },
|
|
29
|
-
{ name: 'DELETE', value: 'DELETE' },
|
|
30
|
-
{ name: 'PATCH', value: 'PATCH' },
|
|
31
|
-
{ name: 'HEAD', value: 'HEAD' },
|
|
32
217
|
],
|
|
33
218
|
default: 'GET',
|
|
34
219
|
},
|
|
@@ -36,12 +221,17 @@ class TlsRequest {
|
|
|
36
221
|
displayName: 'URL',
|
|
37
222
|
name: 'url',
|
|
38
223
|
type: 'string',
|
|
224
|
+
displayOptions: {
|
|
225
|
+
show: {
|
|
226
|
+
curlCommand: [''],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
39
229
|
default: '',
|
|
40
230
|
placeholder: 'https://example.com',
|
|
41
231
|
required: true,
|
|
42
232
|
},
|
|
43
233
|
{
|
|
44
|
-
displayName: 'Browser ID',
|
|
234
|
+
displayName: 'Browser ID (TLS Fingerprint)',
|
|
45
235
|
name: 'browserId',
|
|
46
236
|
type: 'options',
|
|
47
237
|
options: [
|
|
@@ -50,17 +240,46 @@ class TlsRequest {
|
|
|
50
240
|
{ name: 'Chrome 119', value: 'chrome_119' },
|
|
51
241
|
{ name: 'Chrome 118', value: 'chrome_118' },
|
|
52
242
|
{ name: 'Chrome 117', value: 'chrome_117' },
|
|
243
|
+
{ name: 'Chrome 116', value: 'chrome_116' },
|
|
244
|
+
{ name: 'Chrome 115', value: 'chrome_115' },
|
|
245
|
+
{ name: 'Chrome 114', value: 'chrome_114' },
|
|
246
|
+
{ name: 'Chrome 113', value: 'chrome_113' },
|
|
53
247
|
{ name: 'Chrome 112', value: 'chrome_112' },
|
|
248
|
+
{ name: 'Chrome 111', value: 'chrome_111' },
|
|
249
|
+
{ name: 'Chrome 110', value: 'chrome_110' },
|
|
250
|
+
{ name: 'Chrome 109', value: 'chrome_109' },
|
|
251
|
+
{ name: 'Chrome 108', value: 'chrome_108' },
|
|
252
|
+
{ name: 'Chrome 107', value: 'chrome_107' },
|
|
253
|
+
{ name: 'Chrome 106', value: 'chrome_106' },
|
|
54
254
|
{ name: 'Chrome 105', value: 'chrome_105' },
|
|
255
|
+
{ name: 'Chrome 104', value: 'chrome_104' },
|
|
256
|
+
{ name: 'Chrome 103', value: 'chrome_103' },
|
|
55
257
|
// Firefox
|
|
56
258
|
{ name: 'Firefox 117', value: 'firefox_117' },
|
|
259
|
+
{ name: 'Firefox 116', value: 'firefox_116' },
|
|
260
|
+
{ name: 'Firefox 115', value: 'firefox_115' },
|
|
261
|
+
{ name: 'Firefox 114', value: 'firefox_114' },
|
|
262
|
+
{ name: 'Firefox 113', value: 'firefox_113' },
|
|
263
|
+
{ name: 'Firefox 112', value: 'firefox_112' },
|
|
264
|
+
{ name: 'Firefox 111', value: 'firefox_111' },
|
|
57
265
|
{ name: 'Firefox 110', value: 'firefox_110' },
|
|
266
|
+
{ name: 'Firefox 109', value: 'firefox_109' },
|
|
267
|
+
{ name: 'Firefox 108', value: 'firefox_108' },
|
|
268
|
+
{ name: 'Firefox 107', value: 'firefox_107' },
|
|
269
|
+
{ name: 'Firefox 106', value: 'firefox_106' },
|
|
270
|
+
{ name: 'Firefox 105', value: 'firefox_105' },
|
|
271
|
+
{ name: 'Firefox 104', value: 'firefox_104' },
|
|
272
|
+
{ name: 'Firefox 103', value: 'firefox_103' },
|
|
58
273
|
{ name: 'Firefox 102', value: 'firefox_102' },
|
|
59
274
|
// Safari (macOS)
|
|
275
|
+
{ name: 'Safari 17.0', value: 'safari_17_0' },
|
|
276
|
+
{ name: 'Safari 16.5', value: 'safari_16_5' },
|
|
60
277
|
{ name: 'Safari 16.0', value: 'safari_16_0' },
|
|
61
278
|
{ name: 'Safari 15.6.1', value: 'safari_15_6_1' },
|
|
279
|
+
{ name: 'Safari 15.5', value: 'safari_15_5' },
|
|
62
280
|
{ name: 'Safari 15.3', value: 'safari_15_3' },
|
|
63
281
|
// Mobile - iOS
|
|
282
|
+
{ name: 'Safari iOS 17.0', value: 'safari_ios_17_0' },
|
|
64
283
|
{ name: 'Safari iOS 16.0', value: 'safari_ios_16_0' },
|
|
65
284
|
{ name: 'Safari iOS 15.6', value: 'safari_ios_15_6' },
|
|
66
285
|
{ name: 'Safari iOS 15.5', value: 'safari_ios_15_5' },
|
|
@@ -85,7 +304,14 @@ class TlsRequest {
|
|
|
85
304
|
type: 'string',
|
|
86
305
|
default: '',
|
|
87
306
|
placeholder: 'http://user:pass@host:port',
|
|
88
|
-
description: 'Proxy connection string',
|
|
307
|
+
description: 'Proxy connection string (supports http:// and socks5://)',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
displayName: 'Send Headers',
|
|
311
|
+
name: 'sendHeaders',
|
|
312
|
+
type: 'boolean',
|
|
313
|
+
default: false,
|
|
314
|
+
description: 'Whether to send custom headers with the request',
|
|
89
315
|
},
|
|
90
316
|
{
|
|
91
317
|
displayName: 'Headers',
|
|
@@ -95,6 +321,12 @@ class TlsRequest {
|
|
|
95
321
|
multipleValues: true,
|
|
96
322
|
},
|
|
97
323
|
placeholder: 'Add Header',
|
|
324
|
+
displayOptions: {
|
|
325
|
+
show: {
|
|
326
|
+
sendHeaders: [true],
|
|
327
|
+
curlCommand: [''],
|
|
328
|
+
},
|
|
329
|
+
},
|
|
98
330
|
default: {},
|
|
99
331
|
options: [
|
|
100
332
|
{
|
|
@@ -118,54 +350,180 @@ class TlsRequest {
|
|
|
118
350
|
],
|
|
119
351
|
},
|
|
120
352
|
{
|
|
121
|
-
displayName: '
|
|
122
|
-
name: '
|
|
353
|
+
displayName: 'Send Cookies',
|
|
354
|
+
name: 'sendCookies',
|
|
355
|
+
type: 'boolean',
|
|
356
|
+
default: false,
|
|
357
|
+
description: 'Whether to send cookies with the request',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
displayName: 'Cookies',
|
|
361
|
+
name: 'cookies',
|
|
362
|
+
type: 'fixedCollection',
|
|
363
|
+
typeOptions: {
|
|
364
|
+
multipleValues: true,
|
|
365
|
+
},
|
|
366
|
+
placeholder: 'Add Cookie',
|
|
367
|
+
displayOptions: {
|
|
368
|
+
show: {
|
|
369
|
+
sendCookies: [true],
|
|
370
|
+
curlCommand: [''],
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
default: {},
|
|
374
|
+
options: [
|
|
375
|
+
{
|
|
376
|
+
name: 'parameter',
|
|
377
|
+
displayName: 'Cookie',
|
|
378
|
+
values: [
|
|
379
|
+
{
|
|
380
|
+
displayName: 'Name',
|
|
381
|
+
name: 'name',
|
|
382
|
+
type: 'string',
|
|
383
|
+
default: '',
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
displayName: 'Value',
|
|
387
|
+
name: 'value',
|
|
388
|
+
type: 'string',
|
|
389
|
+
default: '',
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
displayName: 'Send Body',
|
|
397
|
+
name: 'sendBody',
|
|
123
398
|
type: 'boolean',
|
|
124
|
-
default:
|
|
399
|
+
default: false,
|
|
125
400
|
displayOptions: {
|
|
126
401
|
show: {
|
|
127
|
-
method: ['POST', 'PUT', 'PATCH'],
|
|
402
|
+
method: ['POST', 'PUT', 'PATCH', 'DELETE'],
|
|
403
|
+
curlCommand: [''],
|
|
128
404
|
},
|
|
129
405
|
},
|
|
130
|
-
description: 'Whether to send
|
|
406
|
+
description: 'Whether to send a body with the request',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
displayName: 'Content Type',
|
|
410
|
+
name: 'contentType',
|
|
411
|
+
type: 'options',
|
|
412
|
+
displayOptions: {
|
|
413
|
+
show: {
|
|
414
|
+
sendBody: [true],
|
|
415
|
+
method: ['POST', 'PUT', 'PATCH', 'DELETE'],
|
|
416
|
+
curlCommand: [''],
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
options: [
|
|
420
|
+
{ name: 'JSON', value: 'json' },
|
|
421
|
+
{ name: 'Form-Data', value: 'form-data' },
|
|
422
|
+
{ name: 'Raw', value: 'raw' },
|
|
423
|
+
],
|
|
424
|
+
default: 'json',
|
|
425
|
+
description: 'The content type of the body',
|
|
131
426
|
},
|
|
132
427
|
{
|
|
133
428
|
displayName: 'Body',
|
|
134
429
|
name: 'body',
|
|
135
430
|
type: 'json',
|
|
136
|
-
default: '{}',
|
|
137
431
|
displayOptions: {
|
|
138
432
|
show: {
|
|
139
|
-
|
|
140
|
-
|
|
433
|
+
sendBody: [true],
|
|
434
|
+
contentType: ['json'],
|
|
435
|
+
method: ['POST', 'PUT', 'PATCH', 'DELETE'],
|
|
436
|
+
curlCommand: [''],
|
|
141
437
|
},
|
|
142
438
|
},
|
|
439
|
+
default: '{}',
|
|
143
440
|
description: 'The JSON body to send',
|
|
144
441
|
},
|
|
145
442
|
{
|
|
146
|
-
displayName: '
|
|
147
|
-
name: '
|
|
148
|
-
type: '
|
|
149
|
-
|
|
443
|
+
displayName: 'Body (Form-Data)',
|
|
444
|
+
name: 'bodyFormData',
|
|
445
|
+
type: 'fixedCollection',
|
|
446
|
+
typeOptions: {
|
|
447
|
+
multipleValues: true,
|
|
448
|
+
},
|
|
449
|
+
placeholder: 'Add Field',
|
|
150
450
|
displayOptions: {
|
|
151
451
|
show: {
|
|
152
|
-
|
|
153
|
-
|
|
452
|
+
sendBody: [true],
|
|
453
|
+
contentType: ['form-data'],
|
|
454
|
+
method: ['POST', 'PUT', 'PATCH', 'DELETE'],
|
|
455
|
+
curlCommand: [''],
|
|
154
456
|
},
|
|
155
457
|
},
|
|
156
|
-
|
|
458
|
+
default: {},
|
|
459
|
+
options: [
|
|
460
|
+
{
|
|
461
|
+
name: 'parameter',
|
|
462
|
+
displayName: 'Field',
|
|
463
|
+
values: [
|
|
464
|
+
{
|
|
465
|
+
displayName: 'Name',
|
|
466
|
+
name: 'name',
|
|
467
|
+
type: 'string',
|
|
468
|
+
default: '',
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
displayName: 'Value',
|
|
472
|
+
name: 'value',
|
|
473
|
+
type: 'string',
|
|
474
|
+
default: '',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
],
|
|
157
479
|
},
|
|
158
480
|
{
|
|
159
|
-
displayName: '
|
|
160
|
-
name: '
|
|
161
|
-
type: '
|
|
162
|
-
|
|
481
|
+
displayName: 'Body (Raw)',
|
|
482
|
+
name: 'bodyRaw',
|
|
483
|
+
type: 'string',
|
|
484
|
+
typeOptions: {
|
|
485
|
+
rows: 4,
|
|
486
|
+
},
|
|
487
|
+
displayOptions: {
|
|
488
|
+
show: {
|
|
489
|
+
sendBody: [true],
|
|
490
|
+
contentType: ['raw'],
|
|
491
|
+
method: ['POST', 'PUT', 'PATCH', 'DELETE'],
|
|
492
|
+
curlCommand: [''],
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
default: '',
|
|
496
|
+
description: 'The raw body to send',
|
|
163
497
|
},
|
|
164
498
|
{
|
|
165
|
-
displayName: '
|
|
166
|
-
name: '
|
|
167
|
-
type: '
|
|
168
|
-
|
|
499
|
+
displayName: 'Options',
|
|
500
|
+
name: 'options',
|
|
501
|
+
type: 'collection',
|
|
502
|
+
placeholder: 'Add Option',
|
|
503
|
+
default: {},
|
|
504
|
+
options: [
|
|
505
|
+
{
|
|
506
|
+
displayName: 'Follow Redirects',
|
|
507
|
+
name: 'followRedirects',
|
|
508
|
+
type: 'boolean',
|
|
509
|
+
default: true,
|
|
510
|
+
description: 'Whether to follow HTTP redirects',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
displayName: 'Timeout (Seconds)',
|
|
514
|
+
name: 'timeout',
|
|
515
|
+
type: 'number',
|
|
516
|
+
default: 30,
|
|
517
|
+
description: 'Request timeout in seconds (max 120)',
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
displayName: 'Insecure Skip Verify',
|
|
521
|
+
name: 'insecureSkipVerify',
|
|
522
|
+
type: 'boolean',
|
|
523
|
+
default: false,
|
|
524
|
+
description: 'Skip TLS certificate verification (not recommended for production)',
|
|
525
|
+
},
|
|
526
|
+
],
|
|
169
527
|
},
|
|
170
528
|
],
|
|
171
529
|
};
|
|
@@ -173,100 +531,198 @@ class TlsRequest {
|
|
|
173
531
|
async execute() {
|
|
174
532
|
const items = this.getInputData();
|
|
175
533
|
const returnData = [];
|
|
534
|
+
// Initialize TLS once at the start
|
|
535
|
+
try {
|
|
536
|
+
await ensureTLSInitialized();
|
|
537
|
+
}
|
|
538
|
+
catch (error) {
|
|
539
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to initialize TLS client: ${error.message}. Please ensure node-tls-client is properly installed.`);
|
|
540
|
+
}
|
|
176
541
|
for (let i = 0; i < items.length; i++) {
|
|
542
|
+
let session;
|
|
177
543
|
try {
|
|
178
|
-
|
|
179
|
-
const url = this.getNodeParameter('url', i);
|
|
544
|
+
// Get parameters
|
|
180
545
|
const browserId = this.getNodeParameter('browserId', i);
|
|
181
|
-
const proxy = this.getNodeParameter('proxy', i);
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
headers[item.name] = item.value;
|
|
189
|
-
}
|
|
190
|
-
// Handle Body
|
|
546
|
+
const proxy = this.getNodeParameter('proxy', i, '');
|
|
547
|
+
const curlCommand = this.getNodeParameter('curlCommand', i, '');
|
|
548
|
+
const options = this.getNodeParameter('options', i, {});
|
|
549
|
+
let method;
|
|
550
|
+
let url;
|
|
551
|
+
let headers = {};
|
|
552
|
+
let cookies = {};
|
|
191
553
|
let body = undefined;
|
|
192
|
-
|
|
193
|
-
if (
|
|
194
|
-
|
|
195
|
-
if (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
554
|
+
// Check if cURL command is provided and parse it
|
|
555
|
+
if (curlCommand && curlCommand.trim() !== '') {
|
|
556
|
+
const parsed = parseCurlCommand(curlCommand);
|
|
557
|
+
if (!parsed.url) {
|
|
558
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Could not parse URL from cURL command. Please check the format.', { itemIndex: i });
|
|
559
|
+
}
|
|
560
|
+
method = parsed.method;
|
|
561
|
+
url = parsed.url;
|
|
562
|
+
headers = parsed.headers || {};
|
|
563
|
+
if (parsed.cookies && Object.keys(parsed.cookies).length > 0) {
|
|
564
|
+
cookies = parsed.cookies;
|
|
565
|
+
}
|
|
566
|
+
if (parsed.body) {
|
|
567
|
+
body = parsed.body;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
// Use manual configuration
|
|
572
|
+
method = this.getNodeParameter('method', i);
|
|
573
|
+
url = this.getNodeParameter('url', i);
|
|
574
|
+
if (!url) {
|
|
575
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'URL is required when not using cURL import', { itemIndex: i });
|
|
576
|
+
}
|
|
577
|
+
// Handle Headers
|
|
578
|
+
const sendHeaders = this.getNodeParameter('sendHeaders', i, false);
|
|
579
|
+
if (sendHeaders) {
|
|
580
|
+
const headerItems = this.getNodeParameter('headers.parameter', i, []);
|
|
581
|
+
for (const item of headerItems) {
|
|
582
|
+
if (item.name) {
|
|
583
|
+
headers[item.name] = item.value;
|
|
200
584
|
}
|
|
201
|
-
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
// Handle Cookies
|
|
588
|
+
const sendCookies = this.getNodeParameter('sendCookies', i, false);
|
|
589
|
+
if (sendCookies) {
|
|
590
|
+
const cookieItems = this.getNodeParameter('cookies.parameter', i, []);
|
|
591
|
+
for (const item of cookieItems) {
|
|
592
|
+
if (item.name) {
|
|
593
|
+
cookies[item.name] = item.value;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
// Handle Body
|
|
598
|
+
const sendBody = this.getNodeParameter('sendBody', i, false);
|
|
599
|
+
if (sendBody && ['POST', 'PUT', 'PATCH', 'DELETE'].includes(method)) {
|
|
600
|
+
const contentType = this.getNodeParameter('contentType', i, 'json');
|
|
601
|
+
if (contentType === 'json') {
|
|
602
|
+
const bodyParam = this.getNodeParameter('body', i, '{}');
|
|
603
|
+
if (typeof bodyParam === 'string') {
|
|
604
|
+
try {
|
|
605
|
+
body = JSON.parse(bodyParam);
|
|
606
|
+
}
|
|
607
|
+
catch {
|
|
608
|
+
body = bodyParam;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
202
612
|
body = bodyParam;
|
|
203
613
|
}
|
|
614
|
+
// Set JSON content type if not already set
|
|
615
|
+
if (!headers['content-type'] && !headers['Content-Type']) {
|
|
616
|
+
headers['content-type'] = 'application/json';
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
else if (contentType === 'form-data') {
|
|
620
|
+
const formDataItems = this.getNodeParameter('bodyFormData.parameter', i, []);
|
|
621
|
+
const formData = {};
|
|
622
|
+
for (const item of formDataItems) {
|
|
623
|
+
if (item.name) {
|
|
624
|
+
formData[item.name] = item.value;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
body = new URLSearchParams(formData).toString();
|
|
628
|
+
if (!headers['content-type'] && !headers['Content-Type']) {
|
|
629
|
+
headers['content-type'] = 'application/x-www-form-urlencoded';
|
|
630
|
+
}
|
|
204
631
|
}
|
|
205
632
|
else {
|
|
206
|
-
body =
|
|
633
|
+
body = this.getNodeParameter('bodyRaw', i, '');
|
|
207
634
|
}
|
|
208
635
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
636
|
+
}
|
|
637
|
+
// Validate URL
|
|
638
|
+
if (!url || !url.startsWith('http')) {
|
|
639
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid URL: ${url}. URL must start with http:// or https://`, { itemIndex: i });
|
|
212
640
|
}
|
|
213
641
|
// Initialize Node TLS Client Session
|
|
214
|
-
const
|
|
215
|
-
|
|
642
|
+
const timeout = Math.min(options.timeout || 30, 120); // Cap at 120 seconds
|
|
643
|
+
const sessionConfig = {
|
|
644
|
+
sessionId: `n8n-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`,
|
|
216
645
|
clientIdentifier: browserId,
|
|
217
|
-
timeout: timeout * 1000,
|
|
218
|
-
|
|
219
|
-
});
|
|
220
|
-
const requestOptions = {
|
|
221
|
-
headers,
|
|
222
|
-
followRedirects,
|
|
646
|
+
timeout: timeout * 1000, // Convert to milliseconds
|
|
647
|
+
followRedirects: options.followRedirects !== false,
|
|
223
648
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
if (body !== undefined && ['POST', 'PUT', 'PATCH'].includes(method)) {
|
|
227
|
-
requestOptions.body = isJsonBody ? JSON.stringify(body) : body;
|
|
649
|
+
if (proxy) {
|
|
650
|
+
sessionConfig.proxy = proxy;
|
|
228
651
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if (method === 'GET') {
|
|
232
|
-
response = await session.get(url, requestOptions);
|
|
652
|
+
if (options.insecureSkipVerify) {
|
|
653
|
+
sessionConfig.insecureSkipVerify = true;
|
|
233
654
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
response = await session.patch(url, requestOptions);
|
|
655
|
+
// Create session
|
|
656
|
+
session = new node_tls_client_1.Session(sessionConfig);
|
|
657
|
+
const requestOptions = {
|
|
658
|
+
headers,
|
|
659
|
+
};
|
|
660
|
+
if (Object.keys(cookies).length > 0) {
|
|
661
|
+
requestOptions.cookies = cookies;
|
|
242
662
|
}
|
|
243
|
-
|
|
244
|
-
|
|
663
|
+
if (body !== undefined && ['POST', 'PUT', 'PATCH', 'DELETE'].includes(method)) {
|
|
664
|
+
if (typeof body === 'object' && !(body instanceof URLSearchParams)) {
|
|
665
|
+
requestOptions.body = JSON.stringify(body);
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
requestOptions.body = body;
|
|
669
|
+
}
|
|
245
670
|
}
|
|
246
|
-
|
|
247
|
-
|
|
671
|
+
// Execute Request with timeout handling
|
|
672
|
+
let response;
|
|
673
|
+
const methodLower = method.toLowerCase();
|
|
674
|
+
try {
|
|
675
|
+
switch (methodLower) {
|
|
676
|
+
case 'get':
|
|
677
|
+
response = await session.get(url, requestOptions);
|
|
678
|
+
break;
|
|
679
|
+
case 'post':
|
|
680
|
+
response = await session.post(url, requestOptions);
|
|
681
|
+
break;
|
|
682
|
+
case 'put':
|
|
683
|
+
response = await session.put(url, requestOptions);
|
|
684
|
+
break;
|
|
685
|
+
case 'patch':
|
|
686
|
+
response = await session.patch(url, requestOptions);
|
|
687
|
+
break;
|
|
688
|
+
case 'delete':
|
|
689
|
+
response = await session.delete(url, requestOptions);
|
|
690
|
+
break;
|
|
691
|
+
case 'head':
|
|
692
|
+
response = await session.head(url, requestOptions);
|
|
693
|
+
break;
|
|
694
|
+
case 'options':
|
|
695
|
+
response = await session.options(url, requestOptions);
|
|
696
|
+
break;
|
|
697
|
+
default:
|
|
698
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Method ${method} not supported`, { itemIndex: i });
|
|
699
|
+
}
|
|
248
700
|
}
|
|
249
|
-
|
|
250
|
-
throw new
|
|
701
|
+
catch (requestError) {
|
|
702
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Request failed: ${requestError.message}`, { itemIndex: i });
|
|
251
703
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
};
|
|
257
|
-
// Try to parse JSON response
|
|
258
|
-
if (typeof responseData.data === 'string') {
|
|
704
|
+
// Process response
|
|
705
|
+
let responseData;
|
|
706
|
+
if (typeof response.body === 'string') {
|
|
707
|
+
// Try to parse as JSON
|
|
259
708
|
try {
|
|
260
|
-
|
|
261
|
-
responseData.data = JSON.parse(responseData.data);
|
|
262
|
-
}
|
|
709
|
+
responseData = JSON.parse(response.body);
|
|
263
710
|
}
|
|
264
|
-
catch
|
|
265
|
-
|
|
711
|
+
catch {
|
|
712
|
+
responseData = response.body;
|
|
266
713
|
}
|
|
267
714
|
}
|
|
715
|
+
else {
|
|
716
|
+
responseData = response.body;
|
|
717
|
+
}
|
|
268
718
|
returnData.push({
|
|
269
|
-
json:
|
|
719
|
+
json: {
|
|
720
|
+
status: response.status,
|
|
721
|
+
statusText: response.statusText || '',
|
|
722
|
+
headers: response.headers,
|
|
723
|
+
data: responseData,
|
|
724
|
+
url: response.url || url,
|
|
725
|
+
},
|
|
270
726
|
});
|
|
271
727
|
}
|
|
272
728
|
catch (error) {
|
|
@@ -280,6 +736,17 @@ class TlsRequest {
|
|
|
280
736
|
}
|
|
281
737
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
|
|
282
738
|
}
|
|
739
|
+
finally {
|
|
740
|
+
// Always close the session to free resources
|
|
741
|
+
if (session) {
|
|
742
|
+
try {
|
|
743
|
+
await session.close();
|
|
744
|
+
}
|
|
745
|
+
catch {
|
|
746
|
+
// Ignore close errors
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
283
750
|
}
|
|
284
751
|
return [returnData];
|
|
285
752
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TlsRequest.node.js","sourceRoot":"","sources":["../../../nodes/TlsRequest/TlsRequest.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,qDAA0C;AAE1C,MAAa,UAAU;IAAvB;QACI,gBAAW,GAAyB;YAChC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE;gBACN,IAAI,EAAE,aAAa;aACtB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,UAAU,EAAE;gBACR;oBACI,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACL,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;wBAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EA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;QACL,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;CACJ;AAxnBD,gCAwnBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-tls-request",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "n8n node for making HTTP requests with custom TLS fingerprints (Chrome, Firefox, Safari) using node-tls-client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"node-tls-client": "^2.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
+
"@types/node": "^18.0.0",
|
|
36
37
|
"n8n-workflow": "*",
|
|
37
|
-
"typescript": "^5.0.0"
|
|
38
|
-
"@types/node": "^18.0.0"
|
|
38
|
+
"typescript": "^5.0.0"
|
|
39
39
|
}
|
|
40
40
|
}
|