As in the comments, the issue was on cookie management. Moreover, I discovered the problem was on the default user agent in another case. Specifying it would fix the issue.