This article discusses how to use curl to troubleshoot requests to an ALM server.
These commands are best executed directly on the ConnectALL server in order to mimic the conditions as closely as possible
You will need to install curl if it is not already installed. Many Linux installations include this by default, however Windows does not. Please locate the download from the official source here: https://curl.se/windows/
If you need to install curl under Linux, use the appropriate package management system to install curl:
$ sudo apt install curl
$ sudo yum install curl
Once you have curl installed, use the following commands to troubleshoot, substituting the highlighted values with your own:
curl -v --location https://<ALM URL>/qcbin/authentication-point/alm-authenticate --header 'Content-Type: application/json' -c cookies.txt -b cookies.txt --data-raw '{"alm-authentication":{"user":"<username>","password":"<password>"}}'
curl -v --location https://<ALM URL>/qcbin/rest/site-session --header 'Content-Type: application/json' -c cookies.txt -b cookies.txt --data-raw '{"alm-authentication":{"user":"<user>","password":"<password>"}}'
curl -v -c cookies.txt -b cookies.txt https://<ALM URL>/qcbin/rest/domains
curl -v -c cookies.txt -b cookies.txt https://<ALM URL>/qcbin/rest/domains/DEFAULT/projects
If you are asked to provide this output to support, please obfuscate your username and password in the above commands.