Module: Net::HTTPHeader

### Home Classes Methods

### In Files

- lib/net/ntlm_http.rb

### Methods

- #auth_data
- #ntlm_auth

### Files

- README

### Class/Module Index

Quicksearch

- Net
- Net::HTTP
- Net::HTTPHeader
- Net::HTTPRequest
- Net::NTLM
- Net::NTLM::Field
- Net::NTLM::FieldSet
- Net::NTLM::Int16LE
- Net::NTLM::Int32LE
- Net::NTLM::Int64LE
- Net::NTLM::Message
- Net::NTLM::Message::Type1
- Net::NTLM::Message::Type2
- Net::NTLM::Message::Type3
- Net::NTLM::SecurityBuffer
- Net::NTLM::String

No matching classes.

# Net::HTTPHeader

### Public Instance Methods

auth_data() click to toggle source

could also try an automatic authentication. sends as basic first, then resends if required, or whatever. seems kind of messy exposing this stuff here.

    # File lib/net/ntlm_http.rb, line 785
    def auth_data
            @auth_data
    end

ntlm_auth(user, password, wait=false) click to toggle source

can set wait - don't authenticate unless challenged. useful when reusing the connection (otherwise you handshake for each request). wait should probably become the default, allowing the type of authentication to be driven by a server challenge.

    # File lib/net/ntlm_http.rb, line 793
    def ntlm_auth user, password, wait=false
            @auth_data = [:ntlm, user, password]
            self['Authorization'] = 'NTLM ' + Net::NTLM::Message::Type1.new.encode64 unless wait
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.