Vera Webcam Connectivity Issue: Missing User-Agent Header

Hey everyone, I’m facing a bit of a puzzle with my Vera system and webcams. I hope the community can help shed some light on this.

So, I’ve noticed that Vera isn’t sending a ‘User-Agent’ header when it accesses my webcams. This seems to be causing some cameras to not respond properly, resulting in a ‘502 Bad Gateway’ error. From what I understand, the ‘User-Agent’ header isn’t strictly necessary, but it’s considered good practice to include it for better compatibility and security.

I did some digging and ran some tests using WireShark and Lua code to see what’s happening. When Vera accesses the webcam without the ‘User-Agent’ header, the camera returns an error. However, when I manually set the ‘User-Agent’ to ‘Vera’, everything works as expected. This makes me think that the missing header is indeed the culprit.

Here’s what the successful and failed connections look like in WireShark:

Working Connection (User-Agent: Vera):

… (WireShark capture showing successful connection)

Failed Connection (Blank User-Agent):

… (WireShark capture showing 502 error)

I’m wondering if this is a known issue or if others have encountered similar problems. Should I report this as a bug to Vera? I’m not entirely sure, but it seems like something that could be improved.

If anyone has experience with this or knows of a workaround, I’d be really grateful for your insights. I’m happy to share more details or test further if needed. Let’s see if we can figure this out together!

Thanks in advance for your help! :pray: