Seybsen Seybsen - 27 days ago 10
reST (reStructuredText) Question

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
?

Answer

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

Comments