cURL request timeout following upgrade to v22.2.3

Nextcloud version 22.2.3
Operating system and version Debian 11.2
Apache or nginx version Apache 2.4.52
PHP version 7.4

Since upgrading the host system to Debian 11.2 and Nextcloud to 22.2.3 a PHP script running as a cron task no longer works. The script uses cURL to download calendars and convert them to .ics files before uploading them.

If I try to access the url https://<server_address>/remote.php/dav/calendars/<user_name>/personal/?export using wget then the operation times out with the message:

failed: Connection timed out.