Troubleshooting ConnectALL calls to ALM domains and projects
search cancel

Troubleshooting ConnectALL calls to ALM domains and projects

book

Article ID: 282279

calendar_today

Updated On: 04-18-2024

Products

ConnectALL

Issue/Introduction

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

Resolution

Installing curl

Windows

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/

 

Linux

If you need to install curl under Linux, use the appropriate package management system to install curl:

Ubuntu

$ sudo apt install curl

 

RedHat (and derivatives)

$ sudo yum install curl

 

Running the Commands

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.