# How to configure an artifact to use a header during package download?

**URL:** <https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057>\
**Category:** Package Management\
**Tags:** question, libcurl\
**Created:** [March 14, 2023, 2:37pm UTC](https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057 "2023-03-14T14:37:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [April 5, 2023, 8:51am UTC](https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057/2 "2023-04-05T08:51:14Z")

</div>

For the general information of people that may stumble upon this topic, the GitLab API ~~seems to only support token identification through headers at this point~~ supports downloading file with authentication. I use this with a self hosted gitlab instance using API v4.

my artifact has its source url as  
`url = "<gitlab instance>/api/v<version>/projects/<project id>/repository/files/<path to file in repo with escaped special characters>/raw?ref=master&lfs=true&private_token=<project token>"`  
so that a user has no need to be authenticated to pull the artifact.

That of course works only if there is not too much security control there. If a user-by-user authentication must be used, I don’t think it is possible at the moment.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057)._
