Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Last active December 18, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterwilsoncc/db7b3d86650d1d8c60c8 to your computer and use it in GitHub Desktop.
Save peterwilsoncc/db7b3d86650d1d8c60c8 to your computer and use it in GitHub Desktop.
Are you able to put this in your functions.php
<?php
$response = wp_remote_get( 'http://www.google.com' );
echo '<pre>';
print_r ( $response['response'] );
echo '</pre>';
/* Expected result
Array
(
[code] => 200
[message] => OK
)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment