class WP_Http_Curl missing support for DELETE method
|Reported by:||jbrinley||Owned by:||dd32|
|Severity:||normal||Keywords:||has-patch needs-testing 3.4-early|
WP_Http_Curl ignores any request methods other than HEAD, POST, and PUT, treating anything else as GET.
I'm particularly interested in the DELETE method, although a reasonable case could be made for also handling OPTIONS and TRACE.
The switch statement in WP_Http_Curl::request() just needs a new case for each:
case 'DELETE': curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'DELETE' ); break; case 'OPTIONS': curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'OPTIONS' ); break; case 'TRACE': curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'TRACE' ); break;
Change History (20)
- Owner set to dd32
- Status changed from new to accepted
- Type changed from enhancement to defect (bug)
- Keywords 3.4-early added
- Milestone changed from Awaiting Review to Future Release