<?php
$transports = array( 'curl', 'fsockopen', 'streams' );
delete_option( 'disable_fsockopen' ); /// just in case

foreach ( $transports as $t ) {
   echo "Using $t <br />";
   foreach ( $transports as $tt ) {
     remove_filter( "use_{$tt}_transport", '__return_false' );
     if ( $tt != $t )
        add_filter( "use_{$tt}_transport", '__return_false' );  
   }

   $url = 'http://test.dd32.id.au/sleep.php';
   $url = "http://ctftw.com/sleep.php";


   timer_start();
   $result = wp_remote_get( $url . '?block', array( 'blocking' => true, 'timeout' => 10 ) );
   timer_stop(true);

   echo '<br />';

   timer_start();
   $result = wp_remote_get( $url . '?noblock', array( 'blocking' => false, 'timeout' => 10 ) );
   timer_stop(true);

   echo "<br /><br />";
}