I am working on an integration with a SaaS application. We have to use CURL call which will accept input parameters in JSON. This also has filename parameter. This filename is generated from other previous call. This CURL should download the file. I tried using
curl -k -c -XGET -H '{"type":"download","credentials":{"partnerUserID":"aa_com","partnerUserSecret":"abce314334c27e431"},"fileName":"export019cdbea-5c50-4861.csv"}' "https://integrations.saas.com/Integration-Server/EIntegrations/"
curl -d '{"type":"download","credentials":{"partnerUserID":"aa_com","partnerUserSecret":"abce31801"},"fileName":"export019cdbea-5c50-4e1.csv"}' -X GET https://integrations.saas.com/Integration-Server/EIntegrations/
I am getting the following error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>400 - Bad Request</title>
</head>
<body>
<h1>400 - Bad Request</h1>
</body>
</html>