Search code examples
restpaypalcoldfusioncoldfusion-10http-patch

How to workaround PATCH-request, if PATCH not supported serverside


I'm using ColdFusion 10 to communicate with PayPal's servers and for some requests I'd need to do HTTP PATCH requests which are not supported by CF10.

Is the PayPal REST API offering an alternate method to fake PATCH requests like appending ?_HttpMethod=PATCH to the request URI or sending a HTTP Header named X-HTTP-Method-Override with value PATCH?


Solution

  • Setting a header named X-HTTP-Method-Override with value PATCH works with PayPal REST API.