I am unable to create a new topic by API using CURL or POSTMAN

My CURL request is,

curl -X POST "https://mysite.com/posts.json" \
-H "Api-Key: mykey" \
-H "Api-Username: system" \
-H "title: How many hours are in a year  and How many seconds are in a year?" \
-H "raw: this is my first topic by api, lets see if it works or not"

I am getting this error in console,

What am i doing wrong? i have tried to use a longer title too.

Can you provide me a sample code to make a new topic by CURL and by postman ?

Yea, use -F for the title and raw so that those values aren’t in the header.

curl -i -sS -X POST "http://localhost:3000/posts.json"  \
-H "Content-Type: multipart/form-data;"  \
-H "Api-Key: asdfasdf..."  \
-H "Api-Username: system"  \
-F "title=f8363e27e93 1686ad52d92 e74621a4c13"  \
-F "raw=1fc960baee7cada5037d4325ffb229ed a83286e99dc8bd6d688edae193d634a9 b608bbde2fb09e90fc4c21b5c22afe2b"