# Questions about http://\[wowza-ip\]:8086/serverinfo

**URL:** <https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924>\
**Category:** Wowza Streaming Engine\
**Created:** [September 17, 2013, 4:38pm UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924 "2013-09-17T16:38:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vichea\_Cheth](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vichea\_Cheth](https://community.wowza.com/u/Vichea_Cheth)\
**Post date:** [September 17, 2013, 4:38pm UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/1 "2013-09-17T16:38:46Z")

</div>

Dear Guys,

I’m still not get enough full skill with Wowza, so I’m gonna ask you some questions about http://[wowza-ip]:8086/serverinfo

1. If there any way to get the server detailed from http://[wowza-ip]:8086/serverinfo

2. Relate to 1) can I filter the data from Application/…/IP and Referrer in this URL by using PHP script or other language. I’m not good at programming, so I wish please show me some codes to filter the data from this URL.

Thank you.

Best Regards,

Vichea

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [September 17, 2013, 5:07am UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/2 "2013-09-17T05:07:19Z")

</div>

Hello,

1. The output is provided as xml so you can use any external script to query the http provider (using digest authentication) and parse the data.

2. One thought would be that you can use [php-curl](http://us2.php.net/curl) to initiate the request and obtain the data. Then you can possibly parse it with [simplexml\_load\_string()](http://us2.php.net/simplexml_load_string).

Matt

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [September 18, 2013, 11:09am UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/3 "2013-09-18T11:09:46Z")

</div>

Hi,

Thanks for the update, I’m glad this is now working as expected.

Jason

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [September 18, 2013, 4:54am UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/4 "2013-09-18T04:54:59Z")

</div>

I’m not following, are you missing data in the return? That looks as though it should work albeit you can technically use CURLAUTH\_DIGEST since that is the type of auth being used.

---

<div class="post-metadata">

**Author:** ![Vichea\_Cheth](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vichea\_Cheth](https://community.wowza.com/u/Vichea_Cheth)\
**Post date:** [September 18, 2013, 2:40pm UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/5 "2013-09-18T14:40:02Z")

</div>

Dear Matt,

This is my PHP code that I use php-curl library. It works with any URL, but the problem is it didn’t work with http://[wowza-ip]:8086/serverinfo it keeps show blank.

Do you have any idea about this? Is there anything wrong?

> \<?php #username, password, and location are example $username='myusername'; $password='mypassword'; $location='http://www.wowza.com'; $ch=curl\_init(); curl\_setopt($ch,CURLOPT\_URL,$location); curl\_setopt($ch,CURLOPT\_RETURNTRANSFER,1); curl\_setopt($ch,CURLOPT\_USERPWD,"$username:$password"); curl\_setopt($ch,CURLOPT\_TIMEOUT,10); $result=curl\_exec($ch); echo $result; ?\>

Best Regards,

Vichea

---

<div class="post-metadata">

**Author:** ![Vichea\_Cheth](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vichea\_Cheth](https://community.wowza.com/u/Vichea_Cheth)\
**Post date:** [September 18, 2013, 4:37pm UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/6 "2013-09-18T16:37:22Z")

</div>

Dear Matt,

These code are working now, but there still problem that there are missing data didn’t display like Referred:

> \<?php $url = "http://wowza-ip:8086/serverinfo/"; $username = 'username'; $password = 'password'; $ch = curl\_init(); curl\_setopt($ch, CURLOPT\_URL, $url); curl\_setopt($ch, CURLOPT\_RETURNTRANSFER, true); curl\_setopt($ch, CURLOPT\_HTTPAUTH, CURLAUTH\_ANY); curl\_setopt($ch, CURLOPT\_USERPWD, "$username:$password"); curl\_setopt($ch, CURLOPT\_COOKIEJAR, '/tmp/cookies.txt'); curl\_setopt($ch, CURLOPT\_COOKIEFILE, '/tmp/cookies.txt'); curl\_setopt($ch, CURLOPT\_FOLLOWLOCATION, true); $result = curl\_exec($ch); print "Error:" . curl\_error($ch) . "  
> "; print "Output:" . $result. "  
>   
> "; curl\_close($ch); ?\>

Please help !

---

<div class="post-metadata">

**Author:** ![Vichea\_Cheth](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vichea\_Cheth](https://community.wowza.com/u/Vichea_Cheth)\
**Post date:** [September 18, 2013, 5:32pm UTC](https://community.wowza.com/t/questions-about-http-wowza-ip-8086-serverinfo/40924/7 "2013-09-18T17:32:49Z")

</div>

Dear Matt,

Now it working after I save the content to text file.

Thanks for support
