Nick O'Leary
97470e94f1
Merge pull request #4262 from sammachin/patch-3
...
Handle 204 in httprequest JSON
2023-08-14 11:10:24 +01:00
Sam Machin
2b01a3fcd3
Handle 204 in httprequest JSON
...
If the http statusCode is 204 (Success, No Content) and the node return type is set to JSON this sets msg.payload as an empty json object so as to supress the JSON parse error
2023-08-02 14:15:29 +01:00
Nick O'Leary
610cb170e7
Fix connection keep-alive in http request node
2023-06-21 15:45:23 +01:00
Nick O'Leary
20abe4a40c
Update dependecies include got
2023-04-28 21:37:03 +01:00
Steven Roebert
daa84c9415
Added SHA-256 and SHA-512-256 algorithms to http digest authentication
2023-03-11 12:07:54 +01:00
Ben Hardill
5670bd8265
Support form-data arrays
2022-12-24 19:32:33 +00:00
Ben Hardill
30956b5441
Add missing property to node object HTTPRequest
...
Also add tests for broken headers
2022-08-14 15:02:39 +01:00
Ben Hardill
660a2e0ed6
Allow HTTP Headers not in spec
...
potential fix for #3772
2022-07-16 19:51:35 +01:00
Steve-Mcl
31b3a4c342
Add UI for common headers/values
...
- Wrap HTML node script in IFFE (isolate module level vars & functions)
- Add UI elements for setting headers in http req node edit form
- Update built in help
- Add tests
2022-03-12 13:47:29 +00:00
Hiroyasu Nishiyama
5effcdb024
use setCookieSync instead of setCookie
2022-01-19 23:45:13 +09:00
Ben Hardill
44616c6872
Fix basic auth with empty username or password
...
fix for #3324
2022-01-05 20:56:46 +00:00
Ben Hardill
b77a2dc353
Better fix
2021-10-28 10:08:28 +01:00
Ben Hardill
87af31de20
HTTP Basic Auth should always add : to username
...
fix for #3235
2021-10-28 09:18:17 +01:00
Nick O'Leary
3759e0f778
Add option to only send http response errors to Catch node
2021-10-04 14:04:59 +01:00
Kunihiko Toumura
490547cd3d
Use httpRequestTimingLog for enable detailed timing log
2021-09-05 15:22:13 +09:00
Kunihiko Toumura
401466d6c0
Add timing log
2021-08-23 11:54:05 +09:00
Nick O'Leary
6364e00202
Merge pull request #3092 from hardillb/http-req-ca-fix
...
Copy tls.cert to tls.certificate for GOT
2021-07-28 10:05:19 +01:00
Ben Hardill
a76c6f86c6
Add Testcase & Fix typo
2021-07-28 08:52:35 +01:00
Ben Hardill
555e815402
Copy tls.cert to tls.certificate for GOT
2021-07-27 22:19:35 +01:00
Nick O'Leary
f1775d4fd1
Handle partially encoded url query strings in request node
2021-07-26 14:21:52 +01:00
Ben Hardill
26087f8dc7
Fix support for supplied CA certs
2021-07-26 10:25:06 +01:00
Nick O'Leary
6e69cfbca4
Preserve case of user-provided http headers in request node
...
Fixes #3081
2021-07-23 09:55:32 +01:00
Nick O'Leary
775181f761
Set decompress to false for HTTP Request to keep 1.x compatibility
...
Fixes #3083
2021-07-23 08:57:44 +01:00
Nick O'Leary
5f6fcb2bc0
Do not throw HTTP errors in request node
...
Fixes #3082
GOT will throw errors for non-successful http responses by default. We need to turn that
off to be consistent with the 1.x behaviour using the request module
2021-07-22 23:48:30 +01:00
Nick O'Leary
7b106e5650
Ensure uri is properly encoded before passing to got module
...
Fixes #3080
2021-07-22 23:47:32 +01:00
Nick O'Leary
79d9c83a2d
Better detection of broken agent-base function patching
2021-07-22 11:19:25 +01:00
Nick O'Leary
f7606e92ca
Detect if agent-base has patch https.request and undo it
...
Fixes #3072
2021-07-21 16:22:28 +01:00
Nick O'Leary
6750be3ec9
HTTP Request node - ignore invalid cookies rather than fail request
...
Fixes #3075
Keeps behaviour consistent with the request module
2021-07-21 14:09:15 +01:00
Ben Hardill
32dd186f4d
Prevent Overwite of configured creds
2021-07-16 08:47:30 +01:00
Ben Hardill
81f0fb3c74
Fix creds in URL
2021-07-15 18:32:51 +01:00
Ben Hardill
972c83cd52
Fix for #3067
...
Check if there are any content to the credential object
2021-07-15 17:35:03 +01:00
Ben Hardill
919aee64f9
Add support for user/pass in URL
2021-06-11 14:48:41 +01:00
Ben Hardill
bcb6d1cf93
Fix for basic auth with @ in username
2021-06-11 14:25:18 +01:00
Ben Hardill
d5c5738aab
Fix proxy authentication problem & reinstate tests
...
Down to only 2 of the previous tests not working
2021-06-08 14:22:20 +01:00
Ben Hardill
8c1a749a5a
Fix msg.responseUrl
...
The original version would pick up the proxy servers port number
2021-05-12 11:08:57 +01:00
Ben Hardill
4c8e895ac7
Clean up console.logs
2021-05-11 09:56:22 +01:00
Ben Hardill
f6a3671366
Get the http-request node got port working with Proxy
2021-05-10 23:01:29 +01:00
Nick O'Leary
e23f20227a
Initial migration from request to got for http-request node
2021-04-23 14:19:15 +01:00
Nick O'Leary
16e021e94f
Request node: set followAllRedirects to work with POSTs
...
Fixes #2017
2021-04-07 14:35:29 +01:00
Ben Hardill
0ca36a89e3
Updates to match Nick's suggestions
2020-02-26 19:45:01 +00:00
Ben Hardill
37bcd5c603
First pass at adding support for GET requests
...
with a body
2020-02-25 21:28:15 +00:00
Simon Hailes
175a871ee0
repalce for-in with 'normal' for loop in mqtt and http
2019-11-18 17:14:38 +00:00
btsimonh
b4e2061e85
Update packages/node_modules/@node-red/nodes/core/network/21-httprequest.js
...
Co-Authored-By: Nick O'Leary <nick.oleary@gmail.com>
2019-11-18 17:03:59 +00:00
Simon Hailes
aa86cfc55f
Add fix for HttpsProxyAgent using an incorrect default port for http:
2019-11-03 11:08:24 +00:00
Simon Hailes
0b3e9bf5e2
mqtt & httprequest: change proxy comparison from null to falsy.
...
mqtt - add no_proxy support.
2019-11-03 09:54:23 +00:00
Nick O'Leary
69b781419f
Move io to network
2019-08-21 14:23:24 +01:00