CURL create a GitHub repo - Cookies must be enabled to use GitHub

I am trying to use

curl -u 'username' https://github.com/username -d '{"name":"cURLCreated","private":true}' -k 

to create a GitHub repo, and I got the error saying that Cookies must be enabled to use GitHub.