Retrieve the raw response from the HTTP request using the GET method in wordpress

$response = wp_remote_get('http://example.com'); $result = json_decode( wp_remote_retrieve_body( $response ) );
Retrieve the raw response from the HTTP request using the GET method in wordpress

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.