torkell: (Default)
Thomas ([personal profile] torkell) wrote2007-01-01 06:02 pm

(no subject)

Hmm, Opera doesn't seem to like doing HTTP auth with a password with high ASCII (ÁÉÍÓÚ and friends). Curious. I thought HTTP was supposed to be 8-bit safe, and given that the password will be Base64 encoded anyway (if not hashed) they've got no excuse.

Edit: Well, either I'm mistyping the password or Firefox doesn't like them either (mistyped, Firefox works. Opera doesn't). How odd. Lemme check the RFC...

...yep, the username is defined as being 8-bit text excluding a ':' and the password is defined as any valid 8-bit text. The only characters not permitted are non-white-space control codes (0 .. 31). The spec even says to assume ISO-8859-1 for high ASCII.

Right, let's have a look with a packet sniffer...

...ah-hah! Opera transmits accented characters in some sort of multi-byte encoding (probably UTF-8), and there doesn't appear to be a setting to change this. Bad Opera.

[identity profile] ralesk.livejournal.com 2007-01-01 06:46 pm (UTC)(link)
This is the popup window thingy that leads you to a 401 if you fail?

[identity profile] ralesk.livejournal.com 2007-01-01 08:36 pm (UTC)(link)

Ahhh, hmm, can you set a charset=iso-8859-1 somehow in this?  I never used it, so I have no idea about how it works, what HTTP headers are in work here, etc.  Could be a way out though.