I have a python script that performs an http request which has been working for years, but only a few months ago it stopped working.
If I do the same http request with Chrome browser, it works fine.
This is the piece of code that performs the http request:
import requests
full_url = r'http://server_name:5001/rest/.........../geocode?'
query = 'address'
country = 'gb'
user = 'user'
pswd = 'password'
res = requests.get(full_url, params={'query': query, 'country': country}, auth=(user,pswd))
If I check the value of 'res' I can see it's 403, which I believe means access has not been granted. However, I know user and pswd are correct because, as stated above, if I do the request via Chrome browser, it works fine.
Any ideas what the problem could be?