OCA / odoorpc

Python module to pilot your Odoo servers through JSON-RPC.
http://pythonhosted.org/OdooRPC/
GNU Lesser General Public License v3.0
231 stars 123 forks source link

[IMP] add User-Agent for correct https connection to remote host #59

Closed veryberry closed 1 year ago

veryberry commented 3 years ago

Bug: trying to connect to remote host: odoo = odoorpc.ODOO(host='xxx.com', port=443, protocol='jsonrpc+ssl') raised error: urllib.error.HTTPError: HTTP Error 403: Forbidden

fix based on https://stackoverflow.com/questions/13303449/urllib2-httperror-http-error-403-forbidden