Resource check in http_lib.php