authenticated http client requests from golang
Okay. I have resolved this. I just needed to create a cookie jar. I am surprised that this is not handled by default by the golang http req/client class. The code that I had to use was: type myjar struct { jar map[string] []*http.Cookie } func (p* myjar) SetCookies(u *url.URL, cookies []*http.Cookie) { fmt.Printf(“The URL … Read more