Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
631 Visualizzazioni

Hi,

I want to check from Odoo API( or any other way) whether My Odoo instance is hostes on Odoo sh or on-premises.
Is there any way to do this?

Thanks

Anju

Avatar
Abbandona
Autore

It return cloudflare for me in server key for odoo sh url.

Autore

Hi,


It did not work. It did not return server in reponse.

Risposta migliore

You can try using 

import requests

url = "odoo_instance.com"
response = requests.get(url)
print(response.headers)

If the instance is hosted on Odoo.sh, the response headers usually contain:

'Server': 'Odoo.sh'

Other instances (like odoo.com SaaS or on-premise deployments) may have different headers that can help identify the hosting environment.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 25
369
2
lug 25
3121
3
lug 25
789
1
giu 25
2304
1
ago 25
1191