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 ...

Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.