Added HTTP status check for curl, hidden warning for file_get_contents.