Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic Authentication and encoding

 
Don Hill
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to find information on the encoding of the basic authentication header, I know that it used base64 encoding for transmitting over the wire but there is also other encoding once the bytes are decoded. Heres a couple of questions.
1.) if I have a chinese OS using a browser with a char set of GB2312 encoding, this browser will be connecting to a machine with CP1252 windows default j2ee server in north america, how is the encoding determine or set.
2.) same case for a North America browser connecting to a Chinese server.
3.) Chinese -> Chinese server
Any thought or help would be great.
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The encoding received will be whatever was sent by the client browser.
If the encoding is not supported the server will simply receive garbage.
 
Don Hill
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, this is fine, I was trying to find info on the http or something that backs this up, I had come to this realization during my testing cycle, is this in the spec or is it that basic auth is broken in this sense.
If you have any more info that you would like to pass on, fell free,
Thanks again.
BTW
Is the src of the RRA page available ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic