# CMake Authenticated Download From Artifactory

**URL:** https://discourse.cmake.org/t/cmake-authenticated-download-from-artifactory/8148
**Category:** Usage
**Created:** [May 17, 2023, 7:02pm UTC](https://discourse.cmake.org/t/cmake-authenticated-download-from-artifactory/8148 "2023-05-17T19:02:46Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [May 18, 2023, 7:27am UTC](https://discourse.cmake.org/t/cmake-authenticated-download-from-artifactory/8148/2 "2023-05-18T07:27:23Z")

</div>

We use **FetchContents** that use `ExternalProject_Add()` which has an `HTTP_HEADER` argument?

That works, but we use **no space** in `set(HTTP_HEADER "X-JFrog-Art-Api:myapikey")`!

@ben.boeckel Why has `file()` a different argument for the same option?

see too [Extra HTTP headers for `file(UPLOAD|DOWNLOAD)`](https://discourse.cmake.org/t/extra-http-headers-for-file-upload-download/1152)

---

_[View the full topic](https://discourse.cmake.org/t/cmake-authenticated-download-from-artifactory/8148)._
