Use php_curl for getting http code