Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 326

Weird behaivour with WebParser HTTP Authentication

$
0
0
Very strange behaivour, I'm posting here since I couldn't find anything for my Error Code and not understanding why it isn't working

To cut a long story short, I'm making a skin for VLC where you don't need the libcad plugin!
I have the following measure

Code:

[VLCRoot]Measure=WebParserURL=http://#UserName#:#Password#@#IpAdress#:#Port#/requests/status.xmlRegExp=.*
For some reason, this is not working, when I run the skin, I getand then the error
  • (Fetch error) The parameter is incorrect. (ErrorCode=87) (VLCMeter\VLCMeter.ini - [VLCRoot])
I have genuinley looked at everything I wrote, up and down, left and right, diagonally, through my monitor (I'm a ghost and I can phase throught it) and it dosen't make sense.
I tried to fix this in a bit of a convoluted way, I looked at the packets in the Developer Tools menu, looked at the headers and decided to move the Auth part from the URL to the Headers stolen from there

Code:

[VLCRoot]Measure=WebParserURL=http://#IpAdress#:#Port#/requests/status.xmlHeader=Authorization: Basic OjEyMzQ=; find a way to encode to b64 #UserName#:#Password#RegExp=.*
This works with the only caveat that I need to base64 that field, which should not be hard, but I don't know if I would want to use Lua.
Is there a way to do HTTP Auth in Rainmeter on local ips without a .TDL ending or did I miss something?

Actually, this entire post was a ruse, should I use status.xml or status.json to parse VLC's data? 🤔

Statistics: Posted by Jeff — Yesterday, 8:00 pm — Replies 3 — Views 110



Viewing all articles
Browse latest Browse all 326

Trending Articles