Proxy not working with Requests::request_multiple()?

I try to send async multiple requests with proxy option by built-in WP Class Requests, but it’s not working. $options = array( ‘proxy’ => $proxy ); Single Request, it’s working, so the proxy itself is working properly. $s = Requests::request($link1, array(), array(), ‘GET’, $options); The result of var_dump($s): object(Requests_Response)[1637] public ‘body’ => string ‘<!doctype html><html … Read more

Is curl required?

My admin panel is very slow I’ve tried to debug the issue. I nailed it to the function wp_remote_post and an internal error message thrown by curl on this line return new WP_Error( ‘http_request_failed’, curl_error( $handle ) ); I wonder what would have happened if I uninstalled curl. Can WordPress use other mechanisms to make … Read more

Facebook OAuth, WP_Http::request() vs wp_remote_request()

Running WordPress 3.3.2 and PHP Version 5.2.17 I’m trying to get the access_token from Facebook using wp_remote_request() and Facebook OAuth API (btw, working example at the end of this entry). Is there any reason why this doesn’t work (should according to doc and source code)?: $response = wp_remote_request(‘https://graph.facebook.com/oauth/access_token’, array( ‘timeout’ => 60, ‘sslverify’ => false, … Read more

WP_Http_Cookie destroys cookie value through urldecode()

Background: Working on a Widget that uses a remote API using wp_remote_post to log into the service, once logged in storing the cookies received for the second request to query data with wp_remote_get. Problem: The cookies from the first request are stored in the response as WP_Http_Cookie objects and their values are run through urldecode … Read more

Custom routes for custom post type?

I have a custom post type called ‘event’. An event has multiple subpages like registration, speakers, contact us, etc. Currently the content is saved as one or more custom fields. I would like to have an url structure like events/{event_slug}/registration events/{event_slug}/speakers events/{event_slug}/contactus With each URL displaying the information from each custom field, respectively. Is there … Read more

Is it safe to use sslverify => true for with wp_remote_get/wp_remote_post

I normally use this argument to prevent errors with wp_remote_get and wp_remote_post array( ‘sslverify’ => false ) For security reasons I would like to set it to true (or remove it since the default is true). Should I expect any problems by doing that? 3 TL;DR: Yes, remove that setting as of WordPress 3.7 or … Read more