# Wowza as client not working on redirect

**URL:** <https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890>\
**Category:** Wowza Streaming Engine\
**Created:** [August 30, 2019, 2:27pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890 "2019-08-30T14:27:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asad\_Manzur1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Asad\_Manzur1](https://community.wowza.com/u/Asad_Manzur1)\
**Post date:** [August 30, 2019, 2:27pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/1 "2019-08-30T14:27:12Z")

</div>

Hi

I am currently testing Wowza server. We are trying to check functionality with Xtream Codes on mpegts and hls. Our situation is as follows:

A) Stream is on Xtream Codes main server, connects and plays without an issue

B) Changing the stream to a loadbalancer on the Xtream Codes, works on VLC, Flussonic, and other players. Wowza does not connect and stream remains in “Waiting for Stream” Status. We believe its because wowza as a client is not accepting the redirect being issued by the server. How can we solve this issue?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2019, 5:22pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/2 "2019-09-04T17:22:02Z")

</div>

I need to ask two questions @Asad Manzur

1. Can you please provide clarification on how you have Wowza set up as a Client? Is it with MediaCaster applehls?

2. How is the load balancer sending out the redirect? Is it via a 302 http code?

---

<div class="post-metadata">

**Author:** ![Rich\_Sokol](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rich\_Sokol](https://community.wowza.com/u/Rich_Sokol)\
**Post date:** [September 4, 2019, 6:04pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/3 "2019-09-04T18:04:33Z")

</div>

@Asad Manzur We are experiencing a very simular issue. Our WSE implementation worked fine with Wowza Player, but we need a player that does not “call home”, so we switched to HTML5 / HLS.js on support’s recommendation. Now, we are getting a 302 http code from our F5 / LTM because it appears WSE is not putting the CORS header info in place, even though it configured to do so.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2019, 6:32pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/4 "2019-09-04T18:32:23Z")

</div>

Thanks for this information @Rich Sokol. I am following your most recent support ticket on this.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2019, 6:37pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/5 "2019-09-04T18:37:41Z")

</div>

While we do support 302 redirects, we do not support agent headers in the http request.

---

<div class="post-metadata">

**Author:** ![Rich\_Sokol](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rich\_Sokol](https://community.wowza.com/u/Rich_Sokol)\
**Post date:** [September 12, 2019, 6:10pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/7 "2019-09-12T18:10:21Z")

</div>

This 100% ended up being on our end, a learning curve coming from Flash and OSMF. Turns out adding a custom configuration object when creating the HLS player mitigated our issue. Specifically, the following: xhrSetup: function (xhr, url) { xhr.withCredentials = true;} in addition to others.

---

<div class="post-metadata">

**Author:** ![Asad\_Manzur1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Asad\_Manzur1](https://community.wowza.com/u/Asad_Manzur1)\
**Post date:** [September 12, 2019, 6:17pm UTC](https://community.wowza.com/t/wowza-as-client-not-working-on-redirect/53890/8 "2019-09-12T18:17:04Z")

</div>

Thanks for the reply Rich. Our issue is when wowza is acting as a client to restream from a source. Can we set up the custom configuariton required when Wowza is acting as HLS/MPEGTS client?

I would appreciate if you could send the details of what all needs to be set up to achieve this.

Thanks
