HTTP API: Replace internals with Requests library.

Requests is a library very similar to WP_HTTP, with a high level of unit test coverage, and has a common lineage and development team. It also supports parallel requests.

See #33055.


git-svn-id: https://develop.svn.wordpress.org/trunk@37428 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan McCue
2016-05-13 04:41:45 +00:00
parent e2329076f3
commit 9074e9f93b
65 changed files with 6999 additions and 92 deletions

View File

@@ -289,10 +289,6 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
// Test 303 - POST to GET
$res = wp_remote_post( add_query_arg( 'response_code', 303, $url ), array( 'timeout' => 30 ) );
$this->assertEquals( 'GET', wp_remote_retrieve_body( $res ) );
// Test 304 - POST to POST
$res = wp_remote_post( add_query_arg( 'response_code', 304, $url ), array( 'timeout' => 30 ) );
$this->assertEquals( 'POST', wp_remote_retrieve_body( $res ) );
}
/**