# LOINC download response headers invalid

**URL:** <https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534>\
**Category:** General\
**Tags:** download\
**Created:** [December 1, 2023, 3:55pm UTC](https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534 "2023-12-01T15:55:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottfavre](https://forum.loinc.org/user_avatar/forum.loinc.org/scottfavre/32/210_2.png) [@scottfavre](https://forum.loinc.org/u/scottfavre)\
**Post date:** [December 1, 2023, 3:55pm UTC](https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534/1 "2023-12-01T15:55:34Z")

</div>

When trying to download LOINC in a script, the `Content-Disposition` header I get back is invalid:

```auto
Content-Disposition: attachment; filename*=UTF-8''Loinc_2.76.zip;

```

This has been happening at least as far back as Nov 11, 2023 according to my logs.

---

<div class="post-metadata">

**Author:** ![timbriscoe](https://forum.loinc.org/user_avatar/forum.loinc.org/timbriscoe/32/938_2.png) [@timbriscoe](https://forum.loinc.org/u/timbriscoe)\
**Post date:** [December 1, 2023, 8:06pm UTC](https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534/2 "2023-12-01T20:06:11Z")

</div>

Hi Scott,

The functionality we use for downloads changed recently. Automation of downloads is not an anticipated use. It should still work in a browser.

Can you please elaborate on what you are trying to accomplish with your script? We may have an alternative available.

---

<div class="post-metadata">

**Author:** ![scottfavre](https://forum.loinc.org/user_avatar/forum.loinc.org/scottfavre/32/210_2.png) [@scottfavre](https://forum.loinc.org/u/scottfavre)\
**Post date:** [December 4, 2023, 3:51pm UTC](https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534/3 "2023-12-04T15:51:28Z")

</div>

We have a terminology service that we keep up to date with many code systems (ICD-10, SNOMED, RxNorm, LOINC, etc.)

It is very nice to be able to have that be an automated process, since each system has its own release cadence (some annual, some monthly, etc.)

---

<div class="post-metadata">

**Author:** ![timbriscoe](https://forum.loinc.org/user_avatar/forum.loinc.org/timbriscoe/32/938_2.png) [@timbriscoe](https://forum.loinc.org/u/timbriscoe)\
**Post date:** [December 4, 2023, 4:42pm UTC](https://forum.loinc.org/t/loinc-download-response-headers-invalid/1534/4 "2023-12-04T16:42:43Z")

</div>

Scott, thanks for elaborating. We recently opened a new LOINC Search API but it is not yet documented. Try the following endpoint with your LOINC credentials.

[https://loinc.regenstrief.org/searchapi/loincs](https://loinc.regenstrief.org/searchapi/loincs)

- query – search string
- rows\* – integer value to indicate the number of rows to return
- offset\* – integer value to indicate the offset, for paging
- sortorder\* – string value, specifying which field to sort on and order (desc and asc)
- language\* – integer value to indicate which language to return
- includefiltercounts\* – boolean value to indicate if information for filters should be returned with the results  
\* These parameters have default values and are optional

For example: `https://loinc.regenstrief.org/searchapi/loincs?query=glucose&rows=100&offset=100&sortorder=loinc_num desc&language=8&includefiltercounts=true`

You can query for everything using an asterisk. Let us know if this fits your needs.
