I\'m trying to use Go to log into a website and store the cookies for later use.
Could you give example code for posting a form, storing the cookies, and accessing a
Go 1.1 introduced a cookie jar implementation net/http/cookiejar.
import ( "net/http" "net/http/cookiejar" ) jar, err := cookiejar.New(nil) if err != nil { // error handling } client := &http.Client{ Jar: jar, }