- 16 May, 2020 2 commits
-
-
Brian Hartvigsen authored
I'm actually not entirely sure why/how this worked with curl but not wget, but it did. The short answer is that using a GET does not result in the HTTP_HEADER file being written, instead you must pass in the http_headers param ($2) which will return the HTTP headers as a string. Luckily, the Token is in both the body and the header. We need it and the id (and smid if 2fa) cookie to proceed. So now we parrse the response for that instead of the HTTP_HEADER file. Interesting side note: wget is fine if the URL contains a \r or \n, but curl will barf on it. So we need to make sure those are stripped from the token as it will be passed in the URL later.
-
Brian Hartvigsen authored
Fixes issue raised by @tatablack
-
- 08 Mar, 2020 2 commits
-
-
Markus Lippert authored
-
Markus Lippert authored
-
- 11 Feb, 2020 1 commit
-
-
Brian Hartvigsen authored
-
- 09 Feb, 2020 12 commits
-
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
This is a lot more fragile then the previous code due to treating JSON as just a string
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
-
Brian Hartvigsen authored
This allows you to update a key on a Synology DSM using the existing API. Handles restarting the necessary services the certificate is attached to and all other internal stuff (copying the certificate around, etc.) This is way less error prone than most articles I've found on how to update a Synology DSM certificate.
-