|
@ -27,10 +27,10 @@ except socket.error as e: |
|
|
print("Ping failed: %s" % e) |
|
|
print("Ping failed: %s" % e) |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
You can include additional diagnostic information in the in the request body (for POST requests): |
|
|
|
|
|
|
|
|
You can include additional diagnostic information in the request body (for POST requests): |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
# Passing diagnostic information in the POST body: |
|
|
# Passing diagnostic information in the POST body: |
|
|
import requests |
|
|
import requests |
|
|
requests.post("PING_URL", data="temperature=-7") |
|
|
requests.post("PING_URL", data="temperature=-7") |
|
|
``` |
|
|
|
|
|
|
|
|
``` |