It is currently April 28th, 2024, 5:20 pm

WebParser.dll HTTP Authentication Bug

Report bugs with the Rainmeter application and suggest features.
Chonner
Posts: 4
Joined: August 27th, 2012, 1:11 am

WebParser.dll HTTP Authentication Bug

Post by Chonner »

Hey Everyone,

I've encountered a small problem with the WebParser.dll plugin when trying to get HTTP authentication when the username is a email address. Specifically I'm trying to get a slightly modified version of Kredoc Gmail skin (located here: http://kredoc.deviantart.com/art/Android-4-0-Gmail-v1-5-315304376) to work with a Google Apps account as opposed to a standard gmail account.

In order for this to work the url that is queried is of a slightly different format.

For a normal gmail account it is:
Url=https://[GmailID]:[GmailPassword]@gmail.google.com/gmail/feed/atom

For a google apps account it is:

Url=https://[EmailID@emaildomain.com]:[EmailPassword]@mail.google.com/a/[emaildomain.com]/feed/atom/

The only difference in the skin code is that line, and when attempting to refresh it I get the following error in the log:

DBUG (00:38:16.584) WebParser.dll: Fetching: https://[EmailID@emaildomain.com]:[EmailPassword]@mail.google.com/a/[emaildomain.com]/feed/atom/
ERRO (00:38:16.584) WebParser.dll: (1493) The URL is invalid (ErrorCode=12005)

Note - obviously with correct login details in place and not the placeholders I've replaced them with!

I've tried both URLs through a browser and they work identically returning the same format of data, so it is valid URL, so I can only presume it is WebParser.dll is not liking the @ in the username or the .com in later part.

For clarity sake - I'm running this build:

2.4.0 beta r1613 64-bit (Aug 26 2012)
Path: C:\Program Files\Rainmeter\
IniFile: C:\Users\#Username#\AppData\Roaming\Rainmeter\Rainmeter.ini
SkinPath: C:\Users\#Username#\Documents\Rainmeter\Skins\

Any help would be greatly appreciated.

Regards,

Chonner
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: WebParser.dll HTTP Authentication Bug

Post by jsmorley »

I assume all those square brackets are not actually in the URL or return in the error log and you are just putting them in there for effect? I hope so, as having square brackets in a URL can cause problems for Rainmeter in general and WebParser in particular. Let's start with the answer to that.
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: WebParser.dll HTTP Authentication Bug

Post by KreAch3R »

Take a look here, and try to find out if it works for you.

Thank you for using my skin! :)

@Jeff: Yes, there are no measure brackets in the Url, and I think Chonner means here that he replaces them correctly:
Note - obviously with correct login details in place and not the placeholders I've replaced them with!
This is the actual Url line:

Code: Select all

Url=https://#GmailID#:#GmailPassword#@gmail.google.com/gmail/feed/atom
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
Chonner
Posts: 4
Joined: August 27th, 2012, 1:11 am

Re: WebParser.dll HTTP Authentication Bug

Post by Chonner »

Yep the square brackets are just there for effect and weren't actually there!

I tried looking through the source code in github, but couldn't make any sense of it....:)
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: WebParser.dll HTTP Authentication Bug

Post by KreAch3R »

Re-check the first line of my post. :)
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
Chonner
Posts: 4
Joined: August 27th, 2012, 1:11 am

Re: WebParser.dll HTTP Authentication Bug

Post by Chonner »

Yep just saw it after I posted, thanks a lot and problem solved! :)

I tried searching, but obviously not hard enough, and thanks for the awesome skin!

Chonner
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: WebParser.dll HTTP Authentication Bug

Post by jsmorley »

NEW RULE

9.1.21/2: We don't use square brackets when we give samples of code that isn't working unless the square brackets are actually in the code, as square brackets are baked into the DNA of Rainmeter in dozen ways and it can never, ever help to make things "more clear" by using them to highlight something.

;-)
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: WebParser.dll HTTP Authentication Bug

Post by KreAch3R »

You 're welcome. :)

@jsmorley: I did have a mini heart attack, too. :D I just felt calm because I knew it was my skin.

(We should add that Google Apps trick to "Tips & Tricks".)
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: WebParser.dll HTTP Authentication Bug

Post by jsmorley »

KreAch3R wrote:You 're welcome. :)

@jsmorley: I did have a mini heart attack, too. :D I just felt calm because I knew it was my skin.

(We should add that Google Apps trick to "Tips & Tricks".)
Good idea. Write it up and post it here and I will move it over.
Chonner
Posts: 4
Joined: August 27th, 2012, 1:11 am

Re: WebParser.dll HTTP Authentication Bug

Post by Chonner »

Hehe, my bad, I have only been using Rainmeter for about 3 hours though so I'll call a newbie excuse. ;)