Dealing with client limitations
One of the limitations would be that not all clients can make all the HTTP calls. It might be possible that it is only restricted to GET or POST calls. The web script framework in Alfresco provides a way to tunnel an HTTP method using a POST method and using it, you can invoke other HTTP method calls. This can be done using the X-HTTP-Method-Override header in the HTTP request with the value as the method name, for example, GET. An alternative way is to specify alf_method as a query string parameter.
Another client limitation could be that not all clients can gracefully handle HTTP codes for non-success. In such cases, there is a mechanism to force the HTTP response to specify success in the response header. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access