Requests.get() in python of frappe return different value from standalone python code

when i use standalone python code with requests.get (), I get a different location in the headers than when I use frappe even though it’s the same url

this is in frappe

this is in stanalone python

and this is in my browser

how to fix for frappe like location in browser