REST Invoke API returns HTTP 401 Unauthorized
book
Article ID: 125464
calendar_today
Updated On:
Products
CA Application Test
CA Continuous Application Insight (PathFinder)
Service Virtualization
Issue/Introduction
When REST Invoke API call is tested in DevTest, sometimes get the "HTTP 401 Unauthorized" response.
Example API call is "http://host:port/api/Dcm/VSEs/VSE/"
The API call can be tested from Postman, DevTest, SoapUI..
Cause
Here are few causes could give the HTTP Unauthorized response:
. Incorrect header information.
. Incorrect Port number.
Environment
All supported DevTest releases.
Resolution
Providing the correct Authorization information/Port number resolved the issue.
Feedback
thumb_up
Yes
thumb_down
No