Escaping the challenge prompt

In a scenario where Authentication is handled another way than directly in the headers and where one would not want the Basic Authentication challenge from Xpertdoc Portal to be prompted to the user, a simple change can be done to the request headers.

Adding XT-WWW-Authenticate-Challenge to the header will not prompt the challenge.

The following is an example that creates Document in a Batch and escapes the challenge prompt.

POST http://portal.xpertdoc.com/odata4/v6/Documents HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: portal.xpertdoc.com
Content-Length: 133
Expect: 100-continue
Connection: Keep-Alive
XT-WWW-Authenticate-Challenge

{
  "BatchId":"00000000-0000-0000-0000-000000000000",
  "InputDocumentName":"Document Name",
  "Status":"Created",
  "InputDocumentType":"Docx"
}