It depends on the version of Performance Center you are using.
If you are using PC 11 then you must use the ALM REST API.
If you are using PC 12 then you cannot use the ALM REST API to download the results, use the PC REST API instead.
To download results from PC11 do the following:
1. login using basic authentication: http://$ALM_SERVER:8080/qcbin/authentication-point/authenticate
2. download the result file: http://$ALM_SERVER:8080/qcbin/rest/domains/$DOMAIN/projects/$PROJECT/results/$RESULT_ID/logical-storage/
3. logout: http://$ALM_SERVER:8080/qcbin/authentication-point/logout
To determine the result_id you can use queries like …/results?order-by={id[DESC]}&query={name[RawResults.zip]}&page-size=1&fields=id
This example returns the result_id of the latest run in ALM.
To download results from PC12 do the following:
1. login using basic authentication: http://$PC_SERVER/loadtest/rest/authentication-point/authenticate
2. download the result file: http://$PC_SERVER/loadtest/rest/domains/$DOMAIN/projects/$PROJECT/runs/$RUNID/results/$RESULT_ID/data
3. logout: http://$PC_SERVER/loadtest/rest/authentication-point/logout
Note: for basic authentication use e.g. curl --user userid:password …
Or in Vugen script use web_set_user and web_set_sockets_option("INITIAL_BASIC_AUTH", "1");.
The REST API documentation can be found in the help section of PC.
André