MJPG http stream with basic and digest authentification issue
Hello
Trying to open a specific stream using vlcKit and Windows Desktop VLC app - issue from the logs. In browser works fine.
Stream - http://sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg
Logs:
http://sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg
creating player instance using shared library
VLC media player - 3.0.4 Vetinari
Copyright © 1996-2018 the VideoLAN team
revision 3.0.3-1-87-gf75ae8e9cd
configured with /Users/jenkins/workspace/VLCKit/vlc-nightly-iOS-MobileVLCKit/libvlc/vlc/configure '--prefix=/Users/jenkins/workspace/VLCKit/vlc-nightly-iOS-MobileVLCKit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/jenkins/workspace/VLCKit/vlc-nightly-iOS-MobileVLCKit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-avfoundation' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-sse' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-swscale' '--disable-projectm' '--enable-libass' '--enable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--enable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-screen' '--enable-freetype' '--enable-taglib' '--disable-mmx' '--disable-sparkle' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0 -DNDEBUG' 'LDFLAGS=-arch arm64 -Wl,-ios_version_min,7.0' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'PKG_CONFIG_PATH='
Creating an input for 'video.mjpg'
using timeshift granularity of 50 MiB
using default timeshift path
http://sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg' gives access
http' demux any' path
sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg'
creating demux: access='http' demux='any' location='sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg' file='(null)'
looking for access_demux module matching "http": 4 candidates
no access_demux modules matched
creating access: http://sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg
looking for access module matching "http": 18 candidates
Password in a URI is DEPRECATED
resolving 109.203.31.252 ...
outgoing request:
GET /mjpg/video.mjpg HTTP/1.1
Host: 109.203.31.252:1766
Accept: /
Accept-Language: en_US
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Range: bytes=0-
2018-09-03 12:54:58.975 Sensio.App.iOS[5480:3419139] incoming response:
HTTP/1.1 401 Unauthorized
Date: Wed, 07 Jan 1970 02:53:00 GMT
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
WWW-Authenticate: Digest realm="AXIS_ACCC8E1C263F", nonce="pC/HHXsAAAA=2462280f29c9ddb6537d95eb1fe3f1598336c67e", algorithm=MD5, qop="auth"
Content-Length: 381
Content-Type: text/html; charset=iso-8859-1
HTTP 401 error
querying proxy for http://sensio:9200vcxz@109.203.31.252:1766/mjpg/video.mjpg
no proxy
http: server='109.203.31.252' port=1766 file='/mjpg/video.mjpg'
user='sensio'
Password in a URI is DEPRECATED
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="WTvLHXsAAAA=3ef18a662878e636ea7218554de4880d019b64b2", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="KvLOHXsAAAA=c62a2a77611d1e6dc5deb80232ecbe871c3a4ae9", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="GbfSHXsAAAA=b053661b25fde341d19e7bd76d1bd3939cdfa81e", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="jobWHXsAAAA=bb42151c1fc545cfcd7074f14b9c378013ee77e7", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="c+jaHXsAAAA=5b58006321bc04e2e3249b5cf85b73a1fcb80031", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="cLHeHXsAAAA=5ca544a25e3fe1f04514b9908b3aa98586178240", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="p5DiHXsAAAA=cdfcc0b23db98cbdd467542ae508c9652a88bfe9", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="b4TmHXsAAAA=af1eec4eade1e33e7407f45f05b4ea9d19106307", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="xkPqHXsAAAA=0c3b42715708c4c79c77724186976146c3e9e038", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="4U7uHXsAAAA=0cf9503979354e8d11315f201faf77a79242bdff", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="2SzyHXsAAAA=e6d4d91889126705c0e3176cce0f7ce21fa80516", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1
HTTP answer code 401
Server: Apache/2.4.10 (Unix) OpenSSL/0.9.8zc
Authentication header: Digest realm="AXIS_ACCC8E1C263F", nonce="UH72HXsAAAA=7fc6f14bd2c5da4c24bffd2fd99bc83a3a7a10ac", algorithm=MD5, qop="auth"
Using Digest Access Authentication
Content-Type: text/html; charset=iso-8859-1
net: connecting to 109.203.31.252 port 1766
connection succeeded (socket = 25)
sending request:
GET /mjpg/video.mjpg HTTP/1.0
Host: 109.203.31.252:1766
User-Agent: VLC/3.0.4 LibVLC/3.0.4
Authorization: Basic c2Vuc2lvOjkyMDB2Y3h6
Icy-MetaData: 1