[wp-trac] [WordPress Trac] #17490: HTTP API fails with timeout, if POST-Headers are present

WordPress Trac wp-trac at lists.automattic.com
Wed May 18 18:14:13 UTC 2011


#17490: HTTP API fails with timeout, if POST-Headers are present
-------------------------------+------------------------------
 Reporter:  simsmaster         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  HTTP               |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by sivel):

 * keywords:   => reporter-feedback


Comment:

 I would assume that $request is the WP_Http object, which brings up the
 question of why wp_remote_post, or wp_remote_request aren't being used.

 Can you please try the helper functions and also try this on trunk or the
 nightlies?

 My test code, in which I have tested each transport individually works
 without issue:

 {{{
 $post_data['tmp'] = 'abc';
 $args = array(
     'timeout' => 30,
     'body' => $post_data
 );

 $response = wp_remote_post('http://localhost/post.php', $args);
 var_dump($response);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17490#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list