[wp-trac] [WordPress Trac] #18727: wp_remote_request with HTTP Curl Class Does Not Support Custom HTTP Methods

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 21 01:26:48 UTC 2011


#18727: wp_remote_request with HTTP Curl Class Does Not Support Custom HTTP Methods
--------------------------+-----------------------------
 Reporter:  zx2c4         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP          |    Version:  3.2.1
 Severity:  major         |   Keywords:  has-patch
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18727>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list