Cannot issue most basic ISAPI command through curl -- please help

I was searching for similar solution using curl; for anyone else who arrives late here the solution for me was digest auth which is supported in curl e.g.

$ curl -o cam5.jpg --digest -u 'admin:xxxxx' http://192.168.100.101/ISAPI/Streaming/channels/501/picture