HTTP_POST - issue passing bearer token.
Hi I'm using HTTP_POST and need to pass a bearer token that I'm retrieving in a previous step.
I've been trying many variations syntax wise that I've found through searches but so far I haven't been able to get it to work.
Any help would be greatly appreciated, I'm tearing my hair out at this point trying to figure it out.
BTW our iseries is at V7R3M0.
This is the latest version I've tried.
values QSYS2.HTTP_POST(
'http://10.2.2.9:9081/apex/n4restapiservice/holtUnitDM/v1/',
'{"equipmentId":"CAXU5289230","category":"IMPORT","freightKind":"FULL"}',
'{"headers": {"header": ["Content-Type,application/json","Authorization,Bearer2f2da8ea-8266-408b-bbf9-9024d96c0634"]}}'
)
the error I received is below.
Here's another variation I've tried and the error I'm receiving.
values QSYS2.HTTP_POST(
'http://10.2.2.9:9081/apex/n4restapiservice/holtUnitDM/v1/',
'{"equipmentId":"CAXU5289230","category":"IMPORT","freightKind":"FULL"}',
'{"header":"Content-Type,application/json","Authorization":"Bearer e52ebb5c-c285-41c9-9877-2b1f189ddaab"}'
);
Comments
-
Hi,
what it is about exactly?
We do performance monitoring even for IBMi, we have the too for it which includes our IBMi agent
This sounds like something for IBM support, nothing related to our tools (LPAR2RRD neither XorMon)
Howdy, Stranger!
Categories
- 1.7K All Categories
- 115 XorMon
- 26 XorMon Original
- 174 LPAR2RRD
- 14 VMware
- 20 IBM i
- 2 oVirt / RHV
- 5 MS Windows and Hyper-V
- Solaris / OracleVM
- 1 XenServer / Citrix
- Nutanix
- 8 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 140 STOR2RRD
- 20 SAN
- 7 LAN
- 19 IBM
- 7 EMC
- 12 Hitachi
- 5 NetApp
- 17 HPE
- 1 Lenovo
- 1 Huawei
- 3 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 4 Pure Storage
- Oracle

