I'm trying to reproduce the example for creating a page with a POST-request from https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/ but get a strange server-response. 'curl -v' says:
> POST /rest/api/content/327825/ HTTP/1.1
> Host: 52.174.142.121:8090
> Authorization: Basic cmF1c2NoZW5iZXJnOlN0YXJ0MA==
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 170
>
* upload completely sent off: 170 out of 170 bytes
< HTTP/1.1 405 Method Not Allowed
< Server: Apache-Coyote/1.1
< X-ASEN: SEN-11472629
< Set-Cookie: JSESSIONID=689AA46918798EB74687224A6C6E874B; Path=/; HttpOnly
< X-Seraph-LoginReason: OK
< X-AUSERNAME: rauschenberg
< Allow: HEAD,DELETE,GET,OPTIONS,PUT
< X-Content-Type-Options: nosniff
< Content-Length: 0
< Date: Thu, 17 Jan 2019 14:38:03 GMT
I looked around but can't figure out why I get the "405 Method Not Allowed" which I think means that the server isn't accepting the POST-request.
Any ideas? Thanks in advance.
Rainer Rauschenberg