Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

go-ntlm-proxy-auth

License: MITGoDoc

With this package, you can connect to http/https servers protected by an NTLM proxy in Golang.

Example

// create a dialerdialer:=&net.Dialer{
Timeout: 30*time.Second,
KeepAlive: 30*time.Second,
}
// wrap dial context with NTLMntlmDialContext:=ntlm.WrapDialContext(dialer.DialContext, "proxyAddr", "user", "password", "domain")
// create a http(s) clientclient:=&http.Client{
Transport: &http.Transport{
Proxy: nil, // !!! IMPORTANT, do not set proxy here !!!Dial: dialer.Dial,
DialContext: ntlmDialContext,
// TLSClientConfig: ...
},
}

About

Authorize to an NTLM Proxy for a HTTP(S) connection in Golang

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages