proxyUrl, err := url.Parse("http://myserver:myport")client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}req, err := http.NewRequest("GET", "http://mysite.com", nil)basic := "Basic " + base64.StdEncoding.EncodeToString([]byte("user:pw"))
resp, err := client.Do(req)
Hi .
Thanks for the reply .
The computer using the browser is not on the domain, so its credentials will not aid - can SSPI do that if the computer is not on the AD ?
Moreover , when the packet finally succeeds I get a message containing NTLM inside , which made me suspect the protocol is using NTLM from the bedining .
--
You received this message because you are subscribed to a topic in the Google
Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/Ych42gA4K1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks again .
Well , I don’t seem to find an SSPI package for go as well .
I will try to look up at Dll's , but that’s for windows clients only .
Guy .
--