here is my problem: executing the same request in go as in python will not return the same cookies, even though both are using the same http method on the same endpoint. Here is my python code:
import requests
r = requests.get("https://instagram.com/paperclip")
for cooke in r.cookies:
print(cooke)
This works as expected, and should be treated as the control. This is my go code:
resp, err := http.Get("https://instagram.com/paperclip")
if err != nil {
panic(err)
}
for _, cookie := range resp.Cookies() {
fmt.Println(cookie.Name, cookie.Value)
}
The only difference is the complete absence of a cookie for the golang one, and I'm not sure why. Has anyone experienced this before / know why the golang one behaves differently?
Edit: in case it is relevant: the specific cookie missing is "urlgen="{[ip: port]}:[token of some kind]"