version: 3.4
I am trying to write to a not-yet existing eventStream in v 3.4 via the HTTP API.
http://docs.geteventstore.com/http-api/3.4.0/writing-to-a-stream/
Using curl to test, I submitted this
curl -v -k -u admin:adminpassword -d ‘[{“eventId”: “fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4”,“eventType”: “AcceptedEvent”,“data”:{“url”: “https://my.example.com/pr/0815”, “correlationId”: “b27465e4-a058-406c-90d2-18c29b9f647c” }, “metadata”: {
“version”: 1 }}]’
-H “Content-Type:application/json” https://myhost.com/streams/mystream
Answer is:
Authorization: Basic YWRtaW46Y2hhbmdlaXQ=
User-Agent: curl/7.43.0
Accept: /
Content-Type:application/json
Content-Length: 219
-
upload completely sent off: 219 out of 219 bytes
-
HTTP 1.0, assume close after body
< HTTP/1.0 501 Unsupported method (‘POST’)
< Server: BaseHTTP/0.3 Python/2.7.9
< Date: Fri, 26 May 2017 07:26:13 GMT
< Content-Type: text/html
<
Error responseError response
Error code 501.
Message: Unsupported method ('POST').
Error code explanation: 501 = Server does not support this operation.
-H “Content-Type:application/vnd.eventstore.events+json” did not work either.
-H “Accept …” did not result a positive result either.
501 points to a server-side error. What is going on there?