For the GET request when Content-Type: application/json is added, it causes the following error:
{“fault”:{“faultstring”:“Failed to execute the RegularExpressionProtection StepDefinition RegularExpressionProtection.Injection. Reason: Unexpected token at position 0.”,“detail”:{“errorcode”:“steps.regexprotection.ExecutionFailed”}}}
Similarly for Content-Type: application/xml, the below is seen:
{“fault”:{“faultstring”:“Failed to execute the RegularExpressionProtection StepDefinition RegularExpressionProtection.Injection. Reason: Premature end of document while parsing at line 1(possibly around char 0)”,“detail”:{“errorcode”:“steps.regexprotection.ExecutionFailed”}}}
Whereas, a GET call without the content type returns a successful response.