Setting cookies with an HTTP client