I am currently working on a project and I have been stuck in exporting a table from the servicenow website using the code below, it is returning a URL redirection instead of the CSV.


Code:
url = "https://url.service-now.com/nav_to.do?" \
                    "uri=server_list.do?sysparm_query=active=false%26CSV"
 
 
response = requests.get(url, stream=True, headers=headers, allow_redirects=True,
...