Hi,
I’m using the HTTP API to post events.
If I want to post a JSON event that’s documented:
curl -i -d@./temp/event.json “http://127.0.0.1:2113/streams/newstream” -H “Content-Type:application/json” -H “ES-EventType: SomeEvent” -H “ES-EventId: C322E299-CB73-4B47-97C5-5054F920746E”
But I can’t work out how to post a binary event:
curl -i -d@./temp/event.bin “http://127.0.0.1:2113/streams/newstream” -H “Content-Type:application/octet-stream” -H “ES-EventType: SomeEvent” -H “ES-EventId: C322E299-CB73-4B47-97C5-5054F920746E”
Says that the content type is not supported.
Posting a binary event as json seems to work but it sets the isJson flag to true so I’m worried it will break something.
Have I missed something?
cheers
Andrew