You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OMC QUICK TIP: CURL Command Giving LBaaS 401 Unauthorized Error

Question
4
Views
0
Comments
edited Oct 15, 2018 11:15PM in Management

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 &#39;sourceDname=My Custom Source&#39; &#39;<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&#39;</a>

When running this, you may find a response from this webservice showing a 401 Unauthorized Error from LBaaS such as below:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!