Monthly Archives: February 2010

CoreNetwork — Beautify CURL By Using PHP Objects

We all know that using CURL in PHP is atrocious. Who wants their beautiful code to look like this:

$c = curl_init($cURL); curl_setopt($c, CURLOPT_URL, "http://tockx.com/s.php"); curl_setopt($c, CURLOPT_HEADER, 1); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_POSTFIELDS, $strParameters); [...]