curl Http post with JSON body curl --header "Content-Type: application/json" \ --request POST \ --data '{"username":"xyz"}' \ http://localhost:3000/api/login Http with headers curl -H "User-Agent: ..." \ https://...