Opened 13 years ago
Closed 13 years ago
#18727 closed defect (bug) (duplicate)
wp_remote_request with HTTP Curl Class Does Not Support Custom HTTP Methods
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.2.1 |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
A simple patch to add custom method support to HTTP Curl class.