I am using the Insomnia client to perform the requests.
Here is the output of the first command:
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 10.55.130.53:80...
* Connected to 10.55.130.53 (10.55.130.53) port 80 (#0)
> POST /redfish/v1/EventService/Subscriptions HTTP/1.1
> Host: 10.55.130.53
> User-Agent: curl/8.1.2
> Accept: */*
> Content-Type: application/json
> Content-Length: 78
>
< HTTP/1.1 301 Moved Permanently
< Location:
10.55.130.53:443/redfish/v1/EventService/Subscriptions/< Content-Length: 0
< Connection: close
< Date: Tue, 22 Aug 2023 18:32:11 GMT
<
* Closing connection 0
And this is the output of the second command:
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 10.55.130.53:443...
* Connected to 10.55.130.53 (10.55.130.53) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: using IP address, SNI is not supported by OS.
* using HTTP/1.x
> POST /redfish/v1/EventService/Subscriptions HTTP/1.1
> Host: 10.55.130.53
> User-Agent: curl/8.1.2
> Accept: */*
> Content-Type: application/json
> Content-Length: 78
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 405 Method Not Allowed
< Content-Length: 0
< Strict-Transport-Security: max-age=31536000; includeSubdomains
< X-XSS-Protection: 1; mode=block
< Content-Security-Policy: default-src 'self';connect-src 'self' ws: wss:;frame-src 'self';img-src 'self' data:;object-src 'self';font-src 'self' data:;script-src 'self' 'unsafe-inline' 'unsafe-eval';style-src 'self' 'unsafe-inline';worker-src 'self' blob:;
< Cache-Control: private
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< OData-Version: 4.0
< Date: Tue, 22 Aug 2023 18:33:33 GMT
<
* Connection #0 to host 10.55.130.53 left intact