Status: Open
Status: Answered
Status: Closed
Status: Duplicate

Content Server Rest API-Authenticate User

0
Posted Jan 22 by Nagesh Gottipati.
Updated Jan 22.

Hi,

Currently i am using CS 16.2.4/16.2.6 for Decisiv search integration

The Authenticate user Rest API call with POST is accepting the following form

username=value&password=value (200 OK ,Returned OTCS ticket)

But if i use the below form
username=value;password=value (500 internal server error, "error": "Argument \"password\" is required." )

Because it is not accepting the semicolon(;) i am unable to perform search through Decisiv

What changes should i do in the Content server configuration to work the REST API call with semicolon(;)

1 Answer

1
BEST ANSWER: As chosen by the author.

I haven't ever seen name-value pairs separated by a semicolon before. Using ampersand to separate the name-value pairs is standard practice, and may be the only valid way to do it. According to https://en.wikipedia.org/wiki/POST_(HTTP), "Each key-value pair is separated by an '&' character, and each key is separated from its value by an '=' character." Based on that I would expect the API to return an error, since the name-value pairs are malformed. Is there a reason you are unable to use the & to separate your name-value pairs?


 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.

Statistics

Related categories

Your answer

To leave an answer, please sign in.