Net::HTTP::Unauthorized - how do I get at the WWW-Authenticate header?
- by Chris McCauley
Given the code below ...
Net::HTTP.start('localhost', 4000) do |http|
    #
    #   usual stuff omitted for clarity
    #
    @response = http.request(req)
end
... if a (well behaved) server returns a 401 (Unauthorized) response, how do I get at the WWW_Authenticate header?
Chris