I am trying to make a POST request from Java using curl. It also has some payload. I am getting status code 400. What am I missing?
Following is the curl I use in terminal..
curl --cookie "token=xyzxyzxyzxyz" --header "Content-Type:application/json" --data
{"branchName":"name","branchId":"bid","sourceBranch":"sb","alias":"pppp","mainPackageFullPath":"main.full.path"}'
-k http://app.aws.application/api/random/create