Skip to content

Instantly share code, notes, and snippets.

@gaabora
gaabora / php_tiny_curl.php
Created January 9, 2018 09:56 — forked from shimondoodkin/php_tiny_curl.php
php tiny curl - a curl function with method, data, headers, cookies, simple to use.
function encodeURIComponent($str) {
$revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')');
return strtr(rawurlencode($str), $revert);
}
class curl_onHeaders
{