I know how to set username and password in wowza configuartion file admin.passwd. I want pass the certification in my PHP code to get information I want automatically.
The following is what I did now.
I send a HTTP Header like ‘"Authorization: Basic ".base64_encode(“myusername:mypassword”)’ to ‘http://[wowza-server]:8086/connectioncounts’,
but the server return the following ‘401 Unauthorized WWW-Authenticate’ to me, why?
the following is the message wowza server returned.
HTTP/1.1 401 Unauthorized WWW-Authenticate: Digest realm=“Wowza Media Systems”, nonce=“144ea174648e736919a83bde8dc12d91”, algorithm=MD5, qop=“auth” Content-Type: text/html Connection: Keep-Alive Server: FlashCom/3.5.2 Cache-Control: no-cache Content-Length: 0