healthchecks_healthchecks/templates/front/snippets/python_requests_payload.txt
2018-11-29 11:11:44 +02:00

7 lines
258 B
Plaintext

# Passing diagnostic information in the POST body:
import requests
requests.post("PING_URL", data="temperature=-7")
# Passing diagnostic information in the User-Agent header:
import requests
requests.get("PING_URL", headers={"User-Agent": "temperature=-7"})