Werk #19509: Fix Windows agent download command
| Component | Setup | ||||
| Title | Fix Windows agent download command | ||||
| Date | Mar 24, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The Windows agent download command shown in the agent registration slideout was missing the -G flag for curl.exe. Without it, curl sent a POST request instead of a GET, causing the server to respond with a 405 Method Not Allowed error. Because the -f flag was also absent, curl did not fail on this HTTP error and instead silently wrote the error response body to the output file, resulting in a useless ~1KB .msi file.
The command now includes -fG: -G forces a GET request and appends --data-urlencode parameters as URL query parameters, and -f makes curl exit with an error on HTTP failure instead of saving the error response.