Class Mechanize::HTTP::WWWAuthenticateParser
In: lib/mechanize/http/www_authenticate_parser.rb
Parent: Object

Parses the WWW-Authenticate HTTP header into separate challenges.

Methods

Public Class methods

Creates a new header parser for WWW-Authenticate headers

Public Instance methods

  auth-param = token "=" ( token | quoted-string )

Parses an auth parameter

auth_scheme()

Alias for token

Parsers the header. Returns an Array of challenges as strings

  quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
  qdtext        = <any TEXT except <">>
  quoted-pair   = "\" CHAR

For TEXT, the rules of RFC 2047 are ignored.

scans a comma followed by spaces needed for Negotiation, NTLM

  1*SP

Parses spaces

  token = 1*<any CHAR except CTLs or separators>

Parses a token

[Validate]