Make WordPress Core


Ignore:
Timestamp:
09/04/2013 04:48:21 AM (11 years ago)
Author:
dd32
Message:

WP_HTTP: Replacing the Fsockopen & Streams Transports with a new Streams transport which fully supports HTTPS communication.
This changeset also bundles ca-bundle.crt from the Mozilla project to allow for us to verify SSL certificates on hosts which have an incomplete, outdated, or invalid local SSL configuration.
Props rmccue for major assistance getting this this far. See #25007 for discussion, also Fixes #16606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r25046 r25224  
    271271        $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );
    272272    }
     273
     274    /**
     275     * Test if HTTPS support works
     276     *
     277     * @group ssl
     278     * @ticket 25007
     279     */
     280    function test_ssl() {
     281        if ( ! wp_http_supports( array( 'ssl' ) ) )
     282            $this->markTestSkipped( 'This install of PHP does not support SSL' );
     283
     284        $res = wp_remote_get( 'https://wordpress.org/' );
     285        $this->assertTrue( ! is_wp_error( $res ), print_r( $res, true ) );
     286    }
     287   
     288   
    273289}
Note: See TracChangeset for help on using the changeset viewer.