February 15, 2008
Curl HTTP Client 1.2
Just put online new version of my Curl_HTTP_Client class. New version 1.2 is release with few bug fixes. New features are ability to send post string as string argument in send_post_data method, ability to accept gzipped content, close curl session etc.
You can download new version from here. For detailed list of features with some usefull examples please visit this blog entry.

Comments(4)
Thanx for class. I’ll use it in my project.
Is this class open source? I notice you kept the copyright to yourself. You might want to add a license file to the distribution so it’s clear how you would like others to copy and extend your work, if at all.
Yeah I want it to be open source, just wasn’t 100% sure which licence to use. BSD perhaps? I want to give developers as much freedom as I can.
please add function for CURLOPT_HTTPHEADER option for using like^
$opts = array(
‘http’ => array(
‘method’ => “GET”,
‘header’ => “X-Requested-With: XMLHttpRequest\r\n”
)
);
$context = stream_context_create($opts);
page = file_get_contents($url, false, $context);