Skip to content

Instantly share code, notes, and snippets.

@atymic
Created July 28, 2019 00:50
Show Gist options
  • Save atymic/4ca2d1ce823e2d5ec5d827f2b82ed0c5 to your computer and use it in GitHub Desktop.
Save atymic/4ca2d1ce823e2d5ec5d827f2b82ed0c5 to your computer and use it in GitHub Desktop.
Debug Curl Request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '<feed>');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
$response = curl_exec($ch);
var_dump($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment