OMC QUICK TIP: CURL Command Giving LBaaS 401 Unauthorized Error
Content
Problem
When you use curl command to call a webservice API as given in a How-To article on these forums:
curl -v -s -k -X POST -u
'TENANTNAME.USERNAME'
-H
'X-USER-IDENTITY-DOMAIN-NAME:TENANTNAME'
\
-o /tmp/contentbundle.zip -d
'sourceDname=My Custom Source'
'<a href="https://omchost/serviceapi/logan.content/export'" style="box-sizing: content-box; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; line-height: 20px; color: rgb(0, 51, 102); text-decoration-line: none; background: 0px center; float: none; height: auto; overflow: visible; width: auto;">https://OMCHOST/serviceapi/logan.content/export'</a>
When running this, you may find a response from this webservice showing a 401 Unauthorized Error from LBaaS such as below:
Tagged:
0