Support PATCH requests

Created on 14 January 2015, over 9 years ago
Updated 22 March 2024, 3 months ago

Was looking to get PATCH support included.

It's currently a @todo in the _chr_curl_request_type_option function.

The following seems to work ok for me:

    case 'PATCH':
      curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); 
      curl_setopt($ch, CURLOPT_POSTFIELDS, $options['data']);     
      $valid_method = TRUE;

I'll look at attaching this as a patch.

✨ Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia maikeru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024