OpenStage 40: DLS ContactMe-Anfrage mit Python senden
English
Deutsch
Dieser Schnipsel sendet eine ContactMe-DLS-Provisioning-Anfrage an ein OpenStage 40-Telefon mit der IP 192.168.178.245 mit Python. Das Telefon kontaktiert dann 192.168.178.10 auf Port 18443 über HTTPS. Standardmäßig (d.h. wenn das OpenStage 40 nicht im Secure Mode ist, wird das Zertifikat nicht verifiziert - jedes Zertifikat ist akzeptiert!)
openstage_contactme.py
import requests
response = requests.post("http://192.168.178.245:8085/contact_dls.html/ContactDLS", data={
"ContactMe": True,
"dls_ip_addr": "192.168.178.10",
"dls_ip_port": 18443
})
# Response will be <Response [204]> i.e. no contentNote that dls_ip_addr may also be a hostname!
Check out similar posts by category:
Networking, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow