Koreus: improve parsing and improve HTTPS
Koreus: improve parsing and improve HTTPS

Close #12744

Thanks to Ruito

(cherry picked from commit aacca35310f0395b6715d282548ff8221beee836)
Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>

jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2