<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.5.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecureDownloadCopyTicketLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecureDownloadCopyTicketLocation"
  },
  "title" : "SecureDownloadCopyTicketLocation"
}
-->

# SecureDownloadCopyTicketLocation

Copies the ticket location from a secure download URL.

```
OSStatus SecureDownloadCopyTicketLocation(CFURLRef url, CFURLRef*ticketLocation);
```

## Parameters

`url`

A secure download URL.

`ticketLocation`

A pointer to a <doc://com.apple.documentation/documentation/CoreFoundation/CFURL> object that the function fills with the URL of the ticket.

## Return Value

A result code. See [Secure Download Result Codes](/documentation/Security/secure-download-result-codes).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)