Skip to content

Instantly share code, notes, and snippets.

@kylerberry
Forked from synCRAUNicity/Start cURL Session (PHP)
Created February 28, 2013 16:14
Show Gist options
  • Save kylerberry/5057875 to your computer and use it in GitHub Desktop.
Save kylerberry/5057875 to your computer and use it in GitHub Desktop.
CURL Session
$url = "http://www.example.org/";
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
$data = curl_exec($curl);
curl_close($curl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment