Rest SAS/WPS HTTP PROC基本身份验证

Rest SAS/WPS HTTP PROC基本身份验证,rest,sas,jira-rest-api,wps,Rest,Sas,Jira Rest Api,Wps,我正在尝试使用WPS从JIRA REST API获取数据。我使用HTTP过程调用JIRA rest api proc http method="GET" url="http://servername:8080/rest/api/2/search?%str(&)fields=project,status%str(&)jql=project=C12395" webusername="username" webpassword="password" ct="application

我正在尝试使用WPS从JIRA REST API获取数据。我使用HTTP过程调用JIRA rest api

proc http 
method="GET"
url="http://servername:8080/rest/api/2/search?%str(&)fields=project,status%str(&)jql=project=C12395"
webusername="username" 
webpassword="password" 
ct="application/JSON"
out=resp;
run;
我得到的错误/响应代码为400

NOTE: Call to [http://servername:8080/rest/api/2/search?&fields=project,
      status&jql=project=C12395] returned [400]
NOTE: Procedure http step took :
      real time : 0.628
      cpu time  : 0.031
我真的不知道我错过了什么。与在JAVA中工作的JIRA REST API URL相同

注:WPS版本为3.2

谢谢!
Bharathi

SAS的哪个版本?SAS 9.2版本400错误请求错误是一个HTTP响应状态代码,表示由于语法无效,服务器无法处理客户端发送的请求。看起来在
之后可能会有一个额外的
&
。也许这是把它扔掉了。。。也许不是。现在还可以尝试简化它,并使用单引号,这样就可以消除引号引起的顾虑:
http://servername:8080/rest/api/2/search?fields=project,status&jql=project=C12395'
我也会试试看:)