rest - 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
谢谢!婆罗提
解决方案
推荐阅读
- swift - 覆盖弱 var 属性?
- java - 如何使包含的组件始终位于顶部
- javascript - 检查插槽中是否设置了“值”
- angular - 如何使用 ionic 和 api 在 html 组件中显示数据
- javascript - 在 iphone/ipad 设备上的网站上使用 Facebook 登录仅适用于谷歌应用程序
- upload - Geocortex Workflow Designer 上传文件
- java - 如何在 5 秒 OnButtonClick 中显示 ProgressBar,然后显示 TextView?
- python - 如何在执行后续语句之前等待函数的返回值,该函数使用 tkinter GUI 并从用户那里获取输入
- amazon-web-services - EC2 实例的 DiskReadBytes 指标和 EBS 的 VolumeReadBytes 指标之间的区别?
- php - 在具有 2 列 a 和 b 的二维数组中。对于 a 列中的所有相同值,从 php 中的 b 列中选择相应的值?