xml - vbscript xmlhttp request authentication. access is denied -


I'm trying to capture a xmldocument with the VLC web interface. My script is intended for the past, but recent versions of VLC have started authentication to reach the web interface and there is no way to disable it (or change user names).

  On Reset Error Next Set xmlDoc = CreateObject ("Msxml2.XMLHTTP.6.0") xmlDoc.Open "GET", "http: // localhost: 8080 / request / status.xml "Wrong", "password", xmlDoc.send ()   

I know that the user / pass I am providing is correct because I access the document through my browser I can do Any ideas?

Thank you

The problem was that I must set the request in base 64 format Header with password

  xmlDoc.Open "GET", "http: // localhost: 8080 / request / status .xml", wrong, "", "password" xmldoc   

should be

  dim base64pw base64pw = "OnBhc3N3b3Jk" xmlDoc.Open "GET", "http: // localhost: 8080 / request / status.xml" , Wrong, "", "password" xmlDoc.setRequestHeader "authorization", "basic" & amp; Base64pw xmlDoc.send ()    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -