I am trying to perform the same task in Java, but can't seem to figure out how to particularly set the cookies.
I know how to do this in python:
response = requests.get(app_url,cookies=cookies,allow_redirects=False)
How do I do the equivalent in Java?