Skip to content

Instantly share code, notes, and snippets.

@debojitkakoti
Created January 27, 2014 13:06
Show Gist options
  • Save debojitkakoti/8648281 to your computer and use it in GitHub Desktop.
Save debojitkakoti/8648281 to your computer and use it in GitHub Desktop.
Simple curl request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "example.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment