On Tue, Aug 13, 2013 at 7:30 AM, kamac <
kama...@gmail.com> wrote:
> Can anybody provide me with an example, of how would I go about adding a
> cookie to my Post request?
Change
r, err := http.PostForm(etc)
to
c := &http.Client{Jar: jar}
r, err := c.PostForm(etc)
You will have to provide the jar variable that implements the
http.CookieJar interface. One option is to use the implementation
net/http/cookiejar package, if you're getting your cookie from an HTTP
request. You could also just hard-code the relevant cookies with a
one-off CookieJar implementation.