首页 > 解决方案 > SAS/WPS HTTP PROC 基本认证

问题描述

我正在尝试使用 WPS 从 JIRA REST API 获取数据。我正在使用 HTTP PROC 调用 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

谢谢!婆罗提

标签: restsasjira-rest-apiwps

解决方案


推荐阅读