title: RTSP Authentication : digest issue
body: <p>I need to authenticate my RTSP stream to a streaming server, here is the challenge : </p>
  
  <pre><code>RTSP/1.0 401 Unauthorized
  WWW-Authenticate: Digest realm="Streaming Server",  nonce="76bfe6986d3e766424de9bd6e7d3ccc1"
  Session: 1845562184;timeout=60
  Cseq: 1
  ...
  </code></pre>
  
  <p>Wirecast manage to successfully authenticate with those settings : </p>
  
  <pre><code>Host name : 192.168.33.9:1935/live/my_stream.sdp
  location : live/my_stream.sdp
  username : user
  password : test
  </code></pre>
  
  <p>its response is : e1dff363b9763df0c7615429af79715c</p>
  
  <p>So according to <a href="http://en.wikipedia.org/wiki/Digest_access_authentication" rel="noreferrer">wikipedia</a> I tried to authenticate with the method : </p>
  
  <pre><code>//H(data) = MD5(data)
  //KD(secret, data) = H(secret:data)
  //A1 = username:realm:password
  //A2 = http-method:uri
  //response = KD( H(A1), nonce:H(A2))
  
  HA1 = md5("user:Streaming Server:test")
  HA2 = md5("POST:live/my_stream.sdp")
  RESPONSE = md5(HA1+":"+nonce+":"+HA2)
  </code></pre>
  
  <p>but with this code I get the response "0963c3a7b1481523f809e6affa7e792e" and 401 Unauthorized </p>
  
  <p>Can you help me ?</p>