I'm using curl on a OpenWrt device to fetch images from a network camera. The problem is that the camera supports only Digest Authentication and I'm unable to get it to work on OpenWrt. Here's the curl command I'm using:
curl --user "username:password" "camera-address-here" --digest -o "snapshot.jpg"
If I run that on my Windows PC with Curl 7.55.1 the camera first returns a 401 (with realm, nonce etc) and curl re-issues another request with appropriate authorization and the request succesfully returns the image. I've managed to get it to work in both command prompt and PHP. However, if I run the exact same command (or php code) on OpenWrt, the second request never gets fired. Any ideas how to solve the problem? The curl version on OpenWrt is "7.60.0 (arm-openwrt-linux-gnu) libcurl/7.60.0 mbedTLS/2.16.3"
The problem is very similar as described in this archived thread: