Testing the wso2 Api Manager using cURL
You are doing two mistakes here.
If you want to generate the token, you need to login to store, not publisher and get the cookies.
curl -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=admin&password=admin'
The URL you have used to generate the toekn don't have port, so I guess, the request sent to default port 80, hence you don't get any response.
curl -k -X POST -b cookies http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag -d 'action=generateApplicationKey&application=DefaultApplication&keytype=SANDBOX&callbackUrl=&authorizedDomains=ALL&validityTime=360000' --header "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
Please note that, keytype should be either SANDBOX
or PRODUCTION
, case sensitive.