# UserAgent header changes values and sometimes is multiple?

**URL:** <https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469>\
**Category:** V3 Integrations\
**Created:** [July 5, 2021, 6:12pm UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469 "2021-07-05T18:12:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davelong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/davelong/32/45578_2.png) [@davelong](https://www.thethingsnetwork.org/forum/u/davelong)\
**Post date:** [July 5, 2021, 6:12pm UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469/1 "2021-07-05T18:12:29Z")

</div>

Coming back to a problem from earlier today - I thought there was a problem with webhooks, but it turned out to be a problem with my hosting provider. However, I have discovered that there is also something I don’t understand going on. I use header fields to decide which infrastructure has sent the packet, and thus how I should handle it (I have some KPN LoRa stuff too). When I first started using TTNV3 I was seeing a UserAgent header with the contant ‘ttn-lw-application-server/v3.13.2-SNAPSHOT-f10ad168f’ - so I used the first part as the key. Today , after the problems TTNV3 seems to send 2 Headers for UserAgent, one with ‘’ and another with ‘’ as content. What is the cause of this ? and can I expect any other changes ? perhaps there is a better way to detect ?

---

<div class="post-metadata">

**Author:** ![davelong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/davelong/32/45578_2.png) [@davelong](https://www.thethingsnetwork.org/forum/u/davelong)\
**Post date:** [July 5, 2021, 6:24pm UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469/2 "2021-07-05T18:24:32Z")

</div>

Sorry - forgot the headers. The UserAgent headers I am receiving are:

‘TheThingsStack/3.13.3’  
‘(linux/amd64)’

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 5, 2021, 6:24pm UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469/3 "2021-07-05T18:24:53Z")

</div>

Update to TTS CE this morning:

- All HTTP requests made by The Things Stack now contain a `User-Agent` header in the form of `TheThingsStack/{version}`.

Plus other things.

> [@davelong](#):
>
> can I expect any other changes ?

The only universal constant is change.

> [@davelong](#):
>
> perhaps there is a better way to detect

Perhaps not make a no-match less catastrophic, I suspect this change will be permanent (for a while) but you can add your own header to the webhook and detect your special string.

---

<div class="post-metadata">

**Author:** ![davelong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/davelong/32/45578_2.png) [@davelong](https://www.thethingsnetwork.org/forum/u/davelong)\
**Post date:** [July 6, 2021, 6:17am UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469/4 "2021-07-06T06:17:44Z")

</div>

> [@descartes](#):
>
> The only universal constant is change.

HaHa - very true !

> [@descartes](#):
>
> Perhaps not make a no-match less catastrophic, I suspect this change will be permanent (for a while) but you can add your own header to the webhook and detect your special string.

Yes - I suppose adding my own header is a good way to do it. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![johan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan/32/45177_2.png) [@johan](https://www.thethingsnetwork.org/forum/u/johan)\
**Post date:** [July 6, 2021, 8:18am UTC](https://www.thethingsnetwork.org/forum/t/useragent-header-changes-values-and-sometimes-is-multiple/49469/5 "2021-07-06T08:18:48Z")

</div>

Indeed, we don’t guarantee the User Agent header to stay the same. Best is to add a header or a path or query parameter.
