When using CurlClient
I'm always getting 303 See Other
error + empty response body (results in an exception), when attempting to download a file from Atlassian Cloud Jira (e.g. using https://your-domain.atlassian.net/rest/api/2/attachment/content/12345 URL).
According to the https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-attachments/#api-rest-api-2-attachment-content-id-get the actual attachment URL is specified in the Location
header.
Enabling the follow location option in the CurlClient
would fix it.