removed require param from get_all method
added options to set custom headers to curl.php