issue #23 replace sending request over file_get_contents by using curl