headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.49k stars 160 forks source link

Submiting form do not return every header/cookie #114

Open MikhailKlemin opened 5 years ago

MikhailKlemin commented 5 years ago

Hello! I am submitting a login form and it's working OK, I logged in, but I do not see all response headers (which I can get via say POSTMAN) especially concerning is JSESSIONID. May be there some setting I missing...

bow := surf.NewBrowser()
/*
Submiting form here
*/

//Reading Headers and Cookies
for k, c := range bow.ResponseHeaders() {
    fmt.Println(k, "\t", c)
}

for k, c := range bow.SiteCookies() {
    fmt.Println(k, "\t", c)
}