I want to get a file(xlsx) from a URL, which is in a Sharepoint folder.
url = 'http://www.sharepointexampleurl.com'
username='username'
password='password'
response = requests.get(url, auth=(username, password), headers={'Connection': 'close'})
if response.status_code >= 300:
raise osv.except_osv(_('Error'), _('Bad Request'))
I always get a 403 error. Do I have to use sharepoint library?I can get files from URLs without authentication, but with authentication i can't. Any ideas?