Hi there,
surely a real dumb question but I am having a try at the event store and following the documentation I try to post a simple event via http.
C:\Windows\System32>curl -i -d “d:\projects\simpleEvent.txt” "http://127.0.0.1:2
113/streams/newstream" -H “Content-Type:text/json”
I receive :
HTTP/1.1 415 Content-Type MUST be set for POST PUT and DELETE
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
Access-Control-Allow-Methods:
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER
Access-Control-Allow-Origin: *
and I would have expected something like :
HTTP/1.1 201 Created
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, DELETE
Location: [http://127.0.0.1:2113/streams/newstream/1
Content-Type](http://127.0.0.1:2113/streams/newstream/1
Content-Type): application/json
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
here’s the content of simpleEvent.txt :
{
“CorrelationId”: “0f7fac5b-d9cb-469f-a167-70867728950e”,
“Events”: [
{
“Data”: {
“Foo”: “Bar”
},
“EventId”: “0f9fad5b-d9cb-469f-a165-70867728951e”,
“EventType”: “Type”,
“Metadata”: {
“Something”: “AValue”
}
}
],
“ExpectedVersion”: “-1”
}
I am using eventstore…9.2.win.debug.x64 on win 8. Is there anything I have overlooked?
Yoann