OCS capabilities API misses "core"

Hi,

I’m writing a Python client that uses Nextcloud’s WebDAV. The user provides only the base-URL to the Nextcloud-installation. That’s why I’m using a GET request on /ocs/v1.php/cloud/capabilities?format=json (providing the OCS-APIRequest header), in order to retrieve the webdav-root.

I found that the returned structure is complete if I test it with my web browser (and a REST-client add-on) while also being logged into Nextcloud’s webinterface. But when I call the API from my Python HTTP client, it misses several sub-elements, most importantly “core”. Why is that? How can I fix that?

Best regards!