replace deprecated function calls in toxidcurl.php