Blog Madness

e-Marketing tips

Saturday, February 2, 2013

Wordpress API: "wp remote get"

From the Wordpress Codex: $response = wp_remote_get( 'http://somedomain.com/filetoget.txt' ); if( is_wp_error( $response ) ) { echo 'Something went wrong!'; } else { echo 'Response:
';     print_r( $response );     echo '
'; }