[wp-trac] [WordPress Trac] #37843: `http_api_curl` hook no longer available for adding custom cURL options

WordPress Trac noreply at wordpress.org
Mon Oct 3 16:45:13 UTC 2016


#37843: `http_api_curl` hook no longer available for adding custom cURL options
--------------------------+-----------------------
 Reporter:  ChaseWiseman  |       Owner:  rmccue
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  HTTP API      |     Version:  4.6
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by reidbusi):

 I would like to point out, I believe that some developers have already
 abandoned the WP HTTP API because of this issue.

  2016.08.30 - version 1.0.7
  Tweak - Replace all wp_remote_requests with raw cURL.
 https://woocommerce.com/products/square/

 Note the date. Business must go on, regardless of what happens to the
 platform it is running on.

 I admit, this is speculation on my part since I do not have access to the
 development repository, but the timing of such a change sure looks like
 this is the reason.

 Actually, looking back through the versions I have saved, I see a comment
 from 1.0.6:
 {{{#!php
                         // if posting image we need to use regular curl
 because
                         // for some unknown reason wp_remote_request does
 not work.
                         // @TODO: Need to look deeper to see why
 wp_remote_request cannot do this.
 }}}

 So I would suspect that given this issue, and the change to the WP core
 HTTP API, they just went with straight PHP cURL for greater control and
 reliability regardless of what happens to the WP core functionality.

 Note the author of WooCommerce Square:
  Author: Automattic

 I don't want to seem ungrateful for anyone's contributions to WP, they are
 all appreciated, but I feel it is important to point these kinds of things
 out. Things need to be more carefully thought through and more thoroughly
 tested in my opinion.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37843#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list