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
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
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.
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
1
mai. 26
|
1268 | |||
|
0
mai. 26
|
5 | |||
|
1
nov. 25
|
5180 | |||
|
1
ago. 25
|
2739 | |||
|
2
jul. 25
|
6636 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
It return cloudflare for me in server key for odoo sh url.
Hi,
It did not work. It did not return server in reponse.