wp_remote_request with HTTP Curl Class Does Not Support Custom HTTP Methods
|Reported by:||zx2c4||Owned by:|
Many plugins, such as W3 Super Cache's Varnish integration, require calling custom HTTP methods. For example, the aforementioned integration will call something like "PURGE /url HTTP/1.1" via wp_remote_request to purge cache. While prior versions of Wordpress supported custom methods, the HTTP Curl class notably does not support custom methods.
The fix is simple. The attached patch adds support for custom HTTP methods.
It should be noted that users of W3 Super Cache + Varnish have broken sites as a consequence of this bug.