How to do NTLM authentication and get response

Hi all
i have 3 values

  1. url = “XXXXX”
  2. username = “XXXX”
    3.domain = “XXXX”
    4.password = “XXXX”

using these values how can do NTLM authentication using ruby code.

Thanks in advance