CURL调用参数

时间:2015-02-20 06:03:49

标签: curl

我正在与SaaS应用程序集成。我们必须使用CURL调用,它将接受JSON中的输入参数。这也有文件名参数。此文件名是从其他先前的调用生成的。此CURL应下载该文件。我尝试使用

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/

我收到以下错误

<!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>

0 个答案:

没有答案