When I make a post using curl the API returns a 404 error page to me.
I'm trying to list all cwp accounts but only the error is returned, checking the logs in /usr/local/cwpsrv/logs/2304_error_log it shows me the following
2024/01/05 16:31:01 [notice] 79020#0: *7119 "^/v1/([^/]+)/?$" matches "/v1/account", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [notice] 79020#0: *7119 rewritten data: "/v1/index.php", args: "method=", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [info] 79020#0: *7119 client my_ip closed keepalive connection
Can anyone shed some light on what this problem could be?
I am using the following command to get the information
curl -k -X POST "https://my_server_ip:2304/v1/account?key=my_key&action=list"